From d467543e67f2e67bc18caaa84901ee4f8d59d0d2 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 22 Jul 2026 12:32:57 +0530 Subject: [PATCH] issues solved in customer po filter in wire master packing --- app/Filament/Resources/WireMasterPackingResource.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/Filament/Resources/WireMasterPackingResource.php b/app/Filament/Resources/WireMasterPackingResource.php index d10cdf3..4be833a 100644 --- a/app/Filament/Resources/WireMasterPackingResource.php +++ b/app/Filament/Resources/WireMasterPackingResource.php @@ -401,11 +401,15 @@ class WireMasterPackingResource extends Resource if (!empty($data['customer_po_master_id'])) { - $customerPoId = CustomerPoMaster::where('customer_po', $data['customer_po_master_id']) - ->where('plant_id', $data['Plant']) - ->value('id'); + // $customerPoId = CustomerPoMaster::where('customer_po', $data['customer_po_master_id']) + // ->where('plant_id', $data['Plant']) + // ->value('id'); + $customerPoIds = CustomerPoMaster::where('customer_po', $data['customer_po_master_id']) + ->where('plant_id', $data['Plant']) + ->pluck('id'); - $query->where('customer_po_master_id', $customerPoId); + // $query->where('customer_po_master_id', $customerPoId); + $query->whereIn('customer_po_master_id', $customerPoIds); } if (! empty($data['wire_packing_status'])) {