修改结算方法
This commit is contained in:
@@ -1177,6 +1177,12 @@ func (s *DefScheduler) updateOrderByBill(order *model.GoodsOrder, bill *model.Wa
|
||||
} else {
|
||||
order.WaybillVendorID = bill.WaybillVendorID
|
||||
order.VendorWaybillID = bill.VendorWaybillID
|
||||
if bill.Status == model.WaybillStatusDelivered {
|
||||
stores, _ := dao.GetStoreList(dao.GetDB(), []int{jxutils.GetSaleStoreIDFromOrder(order)}, nil, nil, nil, "")
|
||||
if len(stores) > 0 {
|
||||
jxutils.RefreshOrderEarningPrice2(order, stores[0].PayPercentage)
|
||||
}
|
||||
}
|
||||
}
|
||||
if revertStatus {
|
||||
order.Status = model.OrderStatusFinishedPickup
|
||||
|
||||
Reference in New Issue
Block a user