Browse Source

收银台

shish 4 years ago
parent
commit
7af47b03fb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app-hd/controllers/WorkController.php

+ 2 - 1
app-hd/controllers/WorkController.php

@@ -59,7 +59,8 @@ class WorkController extends BaseController
             $shopId = $this->shopId;
             $shopId = $this->shopId;
             $ext = ShopExtClass::getByCondition(['shopId' => $shopId], true);
             $ext = ShopExtClass::getByCondition(['shopId' => $shopId], true);
             $mtAlone = $ext->mtAlone ?? 0;
             $mtAlone = $ext->mtAlone ?? 0;
-            if ($mtAlone == 1) {
+            $isCashier = $get['isCashier'] ?? 0;
+            if ($mtAlone == 1 && $isCashier == 1) {
                 $where['fromType'] = ['in', [1, 2, 3]];
                 $where['fromType'] = ['in', [1, 2, 3]];
             }
             }
         }
         }