Merge pull request 'issues solved in customer po filter in wire master packing' (#850) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 25s

Reviewed-on: #850
This commit was merged in pull request #850.
This commit is contained in:
2026-07-22 07:03:18 +00:00

View File

@@ -401,11 +401,15 @@ class WireMasterPackingResource extends Resource
if (!empty($data['customer_po_master_id'])) { if (!empty($data['customer_po_master_id'])) {
$customerPoId = CustomerPoMaster::where('customer_po', $data['customer_po_master_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']) ->where('plant_id', $data['Plant'])
->value('id'); ->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'])) { if (! empty($data['wire_packing_status'])) {