shish 4 anni fa
parent
commit
7af47b03fb
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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;
             $ext = ShopExtClass::getByCondition(['shopId' => $shopId], true);
             $mtAlone = $ext->mtAlone ?? 0;
-            if ($mtAlone == 1) {
+            $isCashier = $get['isCashier'] ?? 0;
+            if ($mtAlone == 1 && $isCashier == 1) {
                 $where['fromType'] = ['in', [1, 2, 3]];
             }
         }