+ UpdateWaybillTip

This commit is contained in:
gazebo
2019-07-30 14:43:28 +08:00
parent 15c6607eb2
commit e7bad7dc25
3 changed files with 31 additions and 6 deletions

View File

@@ -575,3 +575,10 @@ func (c *PurchaseHandler) ListOrders(ctx *jxcontext.Context, parentTask tasksch.
}
return vendorOrderIDs, err
}
func (c *PurchaseHandler) UpdateWaybillTip(ctx *jxcontext.Context, order *model.GoodsOrder, tipFee int64) (err error) {
if globals.EnableMtwmStoreWrite {
err = api.MtwmAPI.OrderUpdateTip(utils.Str2Int64(order.VendorOrderID), jxutils.IntPrice2Standard(tipFee))
}
return err
}