...
|
...
|
@@ -273,6 +273,7 @@ func (order *OrderBase) Compute() error { |
|
|
if hasUsePartnerBonus {
|
|
|
order.OrderCompute.UsePartnerBonus, _ = usePartnerBonus.Round(2).BigFloat().Float64()
|
|
|
} else {
|
|
|
//订单中的货品列表中合伙人分成没有调整值的情况下,对订单的调整值设置为负值用以标识
|
|
|
order.OrderCompute.UsePartnerBonus = -1
|
|
|
}
|
|
|
if hasUseOrderAmount {
|
...
|
...
|
@@ -283,6 +284,7 @@ func (order *OrderBase) Compute() error { |
|
|
Div(decimal.NewFromInt(100)).
|
|
|
Round(2).BigFloat().Float64()
|
|
|
} else {
|
|
|
//订单中的货品列表中货品总金额没有调整值的情况下,对订单的调整值设置为负值用以标识
|
|
|
order.OrderCompute.UseOrderAmount = -1
|
|
|
order.OrderCompute.SalesmanBonus, _ = planOrderAmount.
|
|
|
Mul(decimal.NewFromFloat(order.SalesmanBonusPercent)).
|
...
|
...
|
|