1
This commit is contained in:
@@ -3,6 +3,7 @@ package defsch
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/netprinter"
|
||||
push "git.rosy.net.cn/jx-callback/business/jxutils/unipush"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/weixinmsg"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
@@ -46,14 +47,13 @@ func (s *DefScheduler) OnAfsOrderNew(order *model.AfsOrder, isPending bool) (err
|
||||
}
|
||||
}
|
||||
|
||||
//storeDetail, err := partner.CurOrderManager.LoadStoreDetail(order.StoreID, order.VendorID)
|
||||
//if err == nil {
|
||||
// if storeDetail.IsPrintRefundOrder == model.YES { // 打印退款订单
|
||||
// order2, _ := partner.CurOrderManager.LoadOrder(order.VendorOrderID, order.VendorID)
|
||||
// order2.Status = model.AfsOrderStatusFinished
|
||||
// _, err = netprinter.PrintRefundOrCancelOrder(jxcontext.AdminCtx, model.NO, order2, afsOrder.StoreID)
|
||||
// }
|
||||
//}
|
||||
storeDetail, err := partner.CurOrderManager.LoadStoreDetail(order.StoreID, order.VendorID)
|
||||
if err == nil {
|
||||
if storeDetail.IsPrintRefundOrder == model.YES { // 打印退款订单
|
||||
order2, _ := partner.CurOrderManager.LoadOrder(order.VendorOrderID, order.VendorID)
|
||||
_, err = netprinter.PrintRefundOrCancelOrder(jxcontext.AdminCtx, model.NO, order2, order2.JxStoreID)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//if order.Status == model.AfsOrderStatusWait4Approve || order.Status == model.AfsOrderStatusFinished || order.Status == model.AfsOrderStatusNew {
|
||||
|
||||
Reference in New Issue
Block a user