1
This commit is contained in:
@@ -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("拣货完成后才能转自配送")
|
||||
|
||||
Reference in New Issue
Block a user