1
This commit is contained in:
@@ -1707,6 +1707,9 @@ func (s *DefScheduler) notifyNewOrder(order *model.GoodsOrder, isAuto bool) {
|
|||||||
if order.Flag&model.OrderFlagMaskFake == 0 && order.VendorID != model.VendorIDEBAI {
|
if order.Flag&model.OrderFlagMaskFake == 0 && order.VendorID != model.VendorIDEBAI {
|
||||||
utils.CallFuncAsync(func() {
|
utils.CallFuncAsync(func() {
|
||||||
// order = setFakeActualPayPrice(order)
|
// order = setFakeActualPayPrice(order)
|
||||||
|
if order.VendorStoreID == "7290541" {
|
||||||
|
globals.SugarLogger.Debugf("==================test := %s", utils.Format4Output(order, false))
|
||||||
|
}
|
||||||
netprinter.PrintOrderByOrder(jxcontext.AdminCtx, order, model.PrintTypeOrder, nil)
|
netprinter.PrintOrderByOrder(jxcontext.AdminCtx, order, model.PrintTypeOrder, nil)
|
||||||
//目前暂且认为AdjustCount > 0 就是调整单
|
//目前暂且认为AdjustCount > 0 就是调整单
|
||||||
if order.AdjustCount > 0 {
|
if order.AdjustCount > 0 {
|
||||||
|
|||||||
@@ -463,11 +463,11 @@ func (c *PurchaseHandler) UpdateStoreLineStatus(ctx *jxcontext.Context, vendorOr
|
|||||||
mtwmApi := getAPI(vendorOrgCode, storeID, vendorStoreID)
|
mtwmApi := getAPI(vendorOrgCode, storeID, vendorStoreID)
|
||||||
switch lineStatus {
|
switch lineStatus {
|
||||||
case model.StoreStatusOpened:
|
case model.StoreStatusOpened:
|
||||||
if err = mtwmApi.PoiOnline(vendorStoreID); err != nil {
|
if err = mtwmApi.PoiOnline(vendorStoreID); err == nil {
|
||||||
err = mtwmApi.PoiOpen(vendorStoreID)
|
err = mtwmApi.PoiOpen(vendorStoreID)
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
if err = mtwmApi.PoiOffline(vendorStoreID); err != nil {
|
if err = mtwmApi.PoiOffline(vendorStoreID); err == nil {
|
||||||
err = mtwmApi.PoiClose(vendorStoreID)
|
err = mtwmApi.PoiClose(vendorStoreID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user