cqp 1 mese fa
parent
commit
90e6eb9446
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      app/Service/PurchaseOrderSpecialService.php

+ 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;
     }