1
This commit is contained in:
@@ -236,7 +236,7 @@ func (c *PurchaseHandler) onAfsOrderMsg(msg *mtwmapi.CallbackMsg) (retVal *mtwma
|
|||||||
// 退款类型:1-全额退款;2-部分退款;3-退差价;5-按金额灵活退。
|
// 退款类型:1-全额退款;2-部分退款;3-退差价;5-按金额灵活退。
|
||||||
case 3: // 缺重退部分
|
case 3: // 缺重退部分
|
||||||
if _, ok := orderSkuShopPriceList[utils.Str2Int(rdw.SkuID)]; ok {
|
if _, ok := orderSkuShopPriceList[utils.Str2Int(rdw.SkuID)]; ok {
|
||||||
order.ShopPrice = order.ShopPrice - jxutils.StandardPrice2Int((rdw.RefundPrice/rdw.FoodPrice)*float64(orderSkuShopPriceList[utils.Str2Int(rdw.SkuID)]))
|
order.ShopPrice = order.ShopPrice - utils.Float64TwoInt64((rdw.RefundPrice/rdw.FoodPrice)*float64(orderSkuShopPriceList[utils.Str2Int(rdw.SkuID)]))
|
||||||
order.EarningPrice = order.EarningPrice - jxutils.StandardPrice2Int((rdw.RefundPrice/rdw.FoodPrice)*float64(orderSkuEarningPriceList[utils.Str2Int(rdw.SkuID)]))
|
order.EarningPrice = order.EarningPrice - jxutils.StandardPrice2Int((rdw.RefundPrice/rdw.FoodPrice)*float64(orderSkuEarningPriceList[utils.Str2Int(rdw.SkuID)]))
|
||||||
}
|
}
|
||||||
default: // 全退
|
default: // 全退
|
||||||
|
|||||||
Reference in New Issue
Block a user