This commit is contained in:
苏尹岚
2021-04-01 14:50:34 +08:00
parent 78a077d30e
commit f33267afab

View File

@@ -587,9 +587,12 @@ func (s *DefScheduler) OnWaybillStatusChanged(bill *model.Waybill, isPending boo
s.solutionJdsOrder(bill)
}
//门店发单的门店,需要根据实际运费更新账户(多退少补)
if savedOrderInfo.storeDetail.CreateDeliveryType == model.YES {
s.updateStoreAccount(order, bill)
if storeDetail, err2 := dao.GetStoreDetail(dao.GetDB(), jxutils.GetSaleStoreIDFromOrder(order), order.VendorID, ""); err2 == nil {
if storeDetail.CreateDeliveryType == model.YES {
s.updateStoreAccount(order, bill)
}
}
//订单已经是结束状态之后来的运单143945553920000001
if order.Status > model.OrderStatusEndBegin {
s.ProxyCancelWaybill(order, bill, partner.CancelWaybillReasonNotAcceptIntime, partner.CancelWaybillReasonStrNotAcceptIntime)