...
|
...
|
@@ -213,7 +213,11 @@ func (good *OrderGood) Compute() error { |
|
|
//计算预计货品总值
|
|
|
//计算预计合伙人分红
|
|
|
price := decimal.NewFromFloat(good.Price)
|
|
|
planamount := price.Mul(decimal.NewFromInt(int64(good.PlanGoodNumber))) //price*planGoodNumber
|
|
|
planGoodNumber := good.PlanGoodNumber
|
|
|
if good.PlanGoodNumber < 0 {
|
|
|
planGoodNumber = 0
|
|
|
}
|
|
|
planamount := price.Mul(decimal.NewFromInt(int64(planGoodNumber))) //price*planGoodNumber
|
|
|
var partnerBonusPercent float64
|
|
|
if good.PartnerBonusPercent < 0 {
|
|
|
partnerBonusPercent = 0
|
...
|
...
|
|