三方配送新规则
This commit is contained in:
@@ -799,9 +799,11 @@ func (s *DefScheduler) createWaybillOn3rdProviders(savedOrderInfo *WatchOrderInf
|
|||||||
}
|
}
|
||||||
|
|
||||||
var income int64
|
var income int64
|
||||||
if order.EarningType == model.EarningTypePoints {
|
if order.OrderPayPercentage < 50 {
|
||||||
income = order.TotalShopMoney * int64((order.OrderPayPercentage / 2))
|
income = order.TotalShopMoney * int64((order.OrderPayPercentage / 2))
|
||||||
} else {
|
} else if order.OrderPayPercentage > 50 && order.OrderPayPercentage < 100 {
|
||||||
|
income = order.TotalShopMoney - order.NewEarningPrice
|
||||||
|
} else if order.OrderPayPercentage == 100 {
|
||||||
income = order.TotalShopMoney - order.ShopPrice
|
income = order.TotalShopMoney - order.ShopPrice
|
||||||
}
|
}
|
||||||
//2020-11-16 预计收益-配送费 > 0 再发
|
//2020-11-16 预计收益-配送费 > 0 再发
|
||||||
|
|||||||
Reference in New Issue
Block a user