Browse Source

预订单开单不打小票

shish 2 years ago
parent
commit
099bd8b462
1 changed files with 9 additions and 6 deletions
  1. 9 6
      app-ghs/controllers/OrderController.php

+ 9 - 6
app-ghs/controllers/OrderController.php

@@ -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();
+                            }
                         }
                     }
                 }