This commit is contained in:
邹宗楠
2023-03-10 10:08:56 +08:00
parent 1fc3de2806
commit 248bc2ce8a

View File

@@ -129,6 +129,11 @@ func (s *DefScheduler) canOrderCreateWaybillNormally(order *model.GoodsOrder, sa
}
func (s *DefScheduler) isPossibleSwitch2SelfDelivery(order *model.GoodsOrder) (err error) {
//TODO 刷单用,之后不刷单了删除
if order.VendorID == model.VendorIDDD {
return nil
}
if model.IsOrderDeliveryByPlatform(order) {
if order.Status < model.OrderStatusFinishedPickup {
err = fmt.Errorf("拣货完成后才能转自配送")