This commit is contained in:
邹宗楠
2023-12-15 16:33:26 +08:00
parent 53c22d4468
commit 36c35ea717
3 changed files with 28 additions and 5 deletions

View File

@@ -192,7 +192,9 @@ func (c *BaseScheduler) SelfDeliverDelivered(order *model.GoodsOrder, userName s
err = utils.CallFuncLogError(func() error {
if err = partner.GetPurchaseOrderHandlerFromVendorID(order.VendorID).SelfDeliverDelivered(order, userName); err != nil {
bill, _ := partner.CurOrderManager.LoadWaybill(order.VendorWaybillID, order.WaybillVendorID)
c.CancelWaybill(bill, partner.CancelWaybillReasonOther, partner.CancelWaybillReasonStrActive)
if bill.WaybillVendorID != model.VendorJXFakeWL {
c.CancelWaybill(bill, partner.CancelWaybillReasonOther, partner.CancelWaybillReasonStrActive)
}
}
return err
}, "SelfDeliverDelivered orderID:%s", order.VendorOrderID)