From b25120acf9d3204756fc12fa495492234e498364 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 26 Feb 2026 08:33:11 +0530 Subject: [PATCH] Added skip on completed serial and warning on mismatch invoice --- app/Filament/Imports/InvoiceValidationImporter.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Filament/Imports/InvoiceValidationImporter.php b/app/Filament/Imports/InvoiceValidationImporter.php index 022c37b..3c27e98 100644 --- a/app/Filament/Imports/InvoiceValidationImporter.php +++ b/app/Filament/Imports/InvoiceValidationImporter.php @@ -353,6 +353,12 @@ class InvoiceValidationImporter extends Importer $curPanelBoxSerialNumber = $record->panel_box_serial_number ?? null; } + if ($record->scanned_status == 'Scanned') { + return null; + } elseif ($record->invoice_number != $invoiceNumber) { + throw new RowImportFailedException('Invoice number mismatch with existing record!'); + } + // if ($hadPumpQr == $hasPumpQr && $hadPumpSetQr == $hasPumpSetQr) if ($hasMotorQr || $hasPumpQr || $hasPumpSetQr || $hasCapacitorQr) { $scanCnt = $curMotorQr ? $scanCnt + 1 : $scanCnt; -- 2.49.1