changed logic in panel box inspection stock #1318

Merged
jothi merged 1 commits from ranjith-dev into master 2026-10-27 04:49:13 +00:00
Showing only changes of commit 83c270ef09 - Show all commits

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')