1
This commit is contained in:
@@ -1031,7 +1031,7 @@ func (c *OrderManager) RefreshHistoryOrdersEarningPrice(ctx *jxcontext.Context,
|
||||
store, _ := dao.GetStoreDetail(db, storeID, order.VendorID, "")
|
||||
payPercentage := store.PayPercentage
|
||||
if payPercentage <= 50 {
|
||||
order.NewEarningPrice = order.TotalShopMoney * int64((100 - payPercentage/2)) / 100
|
||||
order.NewEarningPrice = order.TotalShopMoney * utils.Float64TwoInt64(utils.Int2Float64(100)-utils.Int2Float64(payPercentage)/2) / 100
|
||||
} else {
|
||||
order.NewEarningPrice = order.EarningPrice
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user