- GoodsOrder添加DiscountMoney
This commit is contained in:
@@ -153,6 +153,7 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
|
||||
panic(fmt.Sprintf("mtwm Map2Order vendorID:%s failed with error:%v", vendorOrderID, err))
|
||||
}
|
||||
for _, extra := range extraList {
|
||||
order.DiscountMoney += jxutils.StandardPrice2Int(extra.ReduceFee)
|
||||
if extra.Type == mtwmapi.ExtrasPromotionTypeTaoCanZeng || extra.Type == mtwmapi.ExtrasPromotionTypeManZeng {
|
||||
sku := &model.OrderSku{
|
||||
VendorOrderID: order.VendorOrderID,
|
||||
|
||||
Reference in New Issue
Block a user