issues solved in customer po filter in wire master packing
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 16s
Laravel Pint / pint (pull_request) Successful in 3m19s
Laravel Larastan / larastan (pull_request) Failing after 3m59s

This commit is contained in:
dhanabalan
2026-07-22 12:32:57 +05:30
parent aa4a9f68fa
commit d467543e67

View File

@@ -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'])) {