aa
This commit is contained in:
@@ -1572,8 +1572,13 @@ func OrderProfitWarning(order *model.GoodsOrder) {
|
||||
}
|
||||
storeID := jxutils.GetShowStoreIDFromOrder(order)
|
||||
storeDetail, err := dao.GetStoreDetail(db, storeID, order.VendorID, "")
|
||||
payPercentage := 0
|
||||
if storeDetail != nil && err == nil {
|
||||
payPercentage := storeDetail.PayPercentage
|
||||
if storeDetail.VendorPayPercentage != 0 {
|
||||
payPercentage = storeDetail.VendorPayPercentage
|
||||
} else {
|
||||
payPercentage = storeDetail.PayPercentage
|
||||
}
|
||||
if beego.BConfig.RunMode == "jxgy" {
|
||||
if payPercentage >= 50 {
|
||||
profit = utils.Str2Float64(utils.Int64ToStr(order.TotalShopMoney-order.EarningPrice)) / 100
|
||||
|
||||
Reference in New Issue
Block a user