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
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:
@@ -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'])
|
||||
// $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'])
|
||||
->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'])) {
|
||||
|
||||
Reference in New Issue
Block a user