From 8d46e6fbf21523a129c702bc6be141655a613179 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 25 Nov 2026 17:41:54 +0530 Subject: [PATCH] changed logic in create invoice --- .../Pages/CreateInvoiceValidation.php | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/app/Filament/Resources/InvoiceValidationResource/Pages/CreateInvoiceValidation.php b/app/Filament/Resources/InvoiceValidationResource/Pages/CreateInvoiceValidation.php index 7023ca1b..1f61b380 100644 --- a/app/Filament/Resources/InvoiceValidationResource/Pages/CreateInvoiceValidation.php +++ b/app/Filament/Resources/InvoiceValidationResource/Pages/CreateInvoiceValidation.php @@ -4097,29 +4097,29 @@ class CreateInvoiceValidation extends CreateRecord return; } - $panelBoxExist = PanelBoxValidation::where('plant_id', $plantId)->where('panel_box_supplier', $supplierNo)->where('panel_box_serial_number', $pBoxSNo)->first(); + // $panelBoxExist = PanelBoxValidation::where('plant_id', $plantId)->where('panel_box_supplier', $supplierNo)->where('panel_box_serial_number', $pBoxSNo)->first(); - if(!$panelBoxExist){ - Notification::make() - ->title('Unknwon : Serial Number') - ->body("Scanned Panel Box Serial Number '$serNo' was not found in Panel Box Validation.
Please complete the testing process for this Panel Box before proceeding.") - ->danger() - ->seconds(3) - ->send(); + // if(!$panelBoxExist){ + // Notification::make() + // ->title('Unknwon : Serial Number') + // ->body("Scanned Panel Box Serial Number '$serNo' was not found in Panel Box Validation.
Please complete the testing process for this Panel Box before proceeding.") + // ->danger() + // ->seconds(3) + // ->send(); - $this->dispatch('playWarnSound'); + // $this->dispatch('playWarnSound'); - $this->form->fill([ - 'plant_id' => $plantId, - 'invoice_number' => $invoiceNumber, - 'serial_number' => null, - 'total_quantity' => $totQuan, - 'update_invoice' => false, - 'scanned_quantity' => $scanSQuan, - ]); + // $this->form->fill([ + // 'plant_id' => $plantId, + // 'invoice_number' => $invoiceNumber, + // 'serial_number' => null, + // 'total_quantity' => $totQuan, + // 'update_invoice' => false, + // 'scanned_quantity' => $scanSQuan, + // ]); - return; - } + // return; + // } // $notOkPanelBox = PanelBoxValidation::where('plant_id', $plantId)->where('panel_box_supplier', $supplierNo)->where('panel_box_serial_number', $pBoxSNo)->first();