From ab6f11dfb67b38ad3f4eeb92083fc11f0fee08db Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 30 Nov 2026 14:09:26 +0530 Subject: [PATCH] changed logic in panel --- .../Resources/PanelBoxValidationResource.php | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/app/Filament/Resources/PanelBoxValidationResource.php b/app/Filament/Resources/PanelBoxValidationResource.php index 8024d152..8e73ab20 100644 --- a/app/Filament/Resources/PanelBoxValidationResource.php +++ b/app/Filament/Resources/PanelBoxValidationResource.php @@ -649,24 +649,24 @@ class PanelBoxValidationResource extends Resource return; } - $panelExistsPanel1 = PanelBoxValidation::where('plant_id', $plantId) - ->where('panel_box_serial_number', $serialNumber) - ->where('panel_box_supplier', $supplier) - ->first(); + // $panelExistsPanel1 = PanelBoxValidation::where('plant_id', $plantId) + // ->where('panel_box_serial_number', $serialNumber) + // ->where('panel_box_supplier', $supplier) + // ->first(); - if ($panelExistsPanel1) { - Notification::make() - ->title('Duplicate Panel Box Serial Number') - ->body("Duplicate panel already exists.
Panel Box Code: $itemCode, Serial Number: $serialNumber, Supplier Number: $supplier in panel box validation") - ->danger() - ->seconds(4) - ->send(); + // if ($panelExistsPanel1) { + // Notification::make() + // ->title('Duplicate Panel Box Serial Number') + // ->body("Duplicate panel already exists.
Panel Box Code: $itemCode, Serial Number: $serialNumber, Supplier Number: $supplier in panel box validation") + // ->danger() + // ->seconds(4) + // ->send(); - $set('item_id', null); - $set('serial_exists', false); + // $set('item_id', null); + // $set('serial_exists', false); - return; - } + // return; + // } $panelExistsInvoice = InvoiceValidation::where('plant_id', $plantId) ->where('panel_box_serial_number', $serialNumber) -- 2.49.1