added fill foem in inspection #1320

Merged
jothi merged 1 commits from ranjith-dev into master 2026-10-27 04:51:56 +00:00

View File

@@ -448,12 +448,9 @@ class PanelBoxInspectionStock extends Page
$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')
@@ -462,6 +459,12 @@ class PanelBoxInspectionStock extends Page
->seconds(2)
->send();
$this->form->fill([
'plant_id' => $plantId,
'line_id' => $lineId,
'item_id' => null,
]);
return;
}