1
0
forked from poc/pds

changed logic in panel box inspection stock

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