afa пре 5 месеци
родитељ
комит
b698b4f5da
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/api/controller/Inventory.php

+ 1 - 1
app/api/controller/Inventory.php

@@ -59,7 +59,7 @@ class Inventory extends Base
         $spec_id = $this->request->post('spec/s', '');
         if(!empty($type))    $where['a.type'] = $type;
         if(!empty($type_id)) $where['a.type_id'] = $type_id;
-        if(!empty($spec_id)) $where['b.title'] = ['like', '%'.$spec_id.'%'];
+        if(!empty($spec_id)) $where['a.variety_id'] = $spec_id;
 
         $list = $stockLog::alias('a')
                 ->leftjoin('stock_config b', 'a.variety_id = b.id')