cqp 1 сар өмнө
parent
commit
90e6eb9446

+ 7 - 0
app/Service/PurchaseOrderSpecialService.php

@@ -258,6 +258,13 @@ class PurchaseOrderSpecialService extends Service
                 ->select('id')->get()->toArray();
             $model->whereIn('supplier',array_column($id,'id'));
         }
+        if(! empty($data['supplier_man'])) {
+            $id = Depart::where('del_time',0)
+                ->where('parent_id',0)
+                ->where('title', 'LIKE', '%'.$data['supplier_man'].'%')
+                ->select('id')->get()->toArray();
+            $model->whereIn('supplier',array_column($id,'id'));
+        }
 
         return $model;
     }