shish пре 4 година
родитељ
комит
c6cd957a58
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      app-ghs/controllers/PurchaseOrderController.php

+ 4 - 0
app-ghs/controllers/PurchaseOrderController.php

@@ -78,6 +78,10 @@ class PurchaseOrderController extends BaseController
         if ($orderStatus) {
             $where['status'] = $orderStatus;
         }
+        $ghsId = $get['ghsId'] ?? 0;
+        if(!empty($ghsId)){
+            $where['ghsId'] = $ghsId;
+        }
         $where['sjId'] = $this->sjId;
         $where['shopId'] = $this->shopId;
         $data = PurchaseOrderClass::getOrderList($where);