changed logic in panel box inspection stock
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Gemini PR Review / Gemini PR Review (pull_request) Failing after 21s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Pint / pint (pull_request) Successful in 5m6s
Laravel Larastan / larastan (pull_request) Failing after 14m25s

This commit is contained in:
dhanabalan
2026-10-27 10:19:01 +05:30
parent 5b6c182df9
commit 83c270ef09

View File

@@ -446,12 +446,14 @@ class PanelBoxInspectionStock extends Page
}
}
$panelExistsInvoice = InvoiceValidation::where('plant_id', $this->plantId)
$panelExistsInvoice = InvoiceValidation::where('plant_id', $plantId)
->where('panel_box_serial_number', $serialNumber)
// ->where('panel_box_code', $itemCode)
->where('panel_box_supplier', $supplier)
->first();
if ($panelExistsInvoice) {
Notification::make()
->title('Duplicate Panel Box Serial Number')