|
|
@@ -1066,12 +1066,15 @@ class OrderController extends BaseController
|
|
|
}
|
|
|
//订单生成时唤起在线打印
|
|
|
if (isset($order->needPrint) && $order->needPrint == dict::getDict('needPrint', 'need')) {
|
|
|
- if ($order->status != 1 && $order->status != 5) {
|
|
|
- OrderClass::onlinePrint($order);
|
|
|
- $ext = $this->shopExt;
|
|
|
- if (isset($ext->printSn) && !empty($ext->printSn)) {
|
|
|
- $order->printNum += 1;
|
|
|
- $order->save();
|
|
|
+ //预订单开单不打小票
|
|
|
+ if ($order->book == 0) {
|
|
|
+ if ($order->status != 1 && $order->status != 5) {
|
|
|
+ OrderClass::onlinePrint($order);
|
|
|
+ $ext = $this->shopExt;
|
|
|
+ if (isset($ext->printSn) && !empty($ext->printSn)) {
|
|
|
+ $order->printNum += 1;
|
|
|
+ $order->save();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|