From e48ab81581a052537506aea31a6fcf9f7f670489 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Tue, 27 Oct 2026 10:21:43 +0530 Subject: [PATCH] added fill foem in inspection --- app/Filament/Pages/PanelBoxInspectionStock.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/Filament/Pages/PanelBoxInspectionStock.php b/app/Filament/Pages/PanelBoxInspectionStock.php index 746f377e..291d4e02 100644 --- a/app/Filament/Pages/PanelBoxInspectionStock.php +++ b/app/Filament/Pages/PanelBoxInspectionStock.php @@ -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; }