From 3da1616a9f41506038a14242980a63ab2a2b3835 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sat, 8 Nov 2025 01:37:07 +0530 Subject: [PATCH] Added logic for duplicate validation in invoice out validation screen --- app/Filament/Resources/InvoiceOutValidationResource.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Filament/Resources/InvoiceOutValidationResource.php b/app/Filament/Resources/InvoiceOutValidationResource.php index 1925009..f3b16f1 100644 --- a/app/Filament/Resources/InvoiceOutValidationResource.php +++ b/app/Filament/Resources/InvoiceOutValidationResource.php @@ -217,7 +217,7 @@ class InvoiceOutValidationResource extends Resource $uniqueKey = $plantCode . '_' . $qrCode; if (in_array($uniqueKey, $seenPlantQr)) { - $duplicateQrExcel[] = "Duplicate in file at Row {$index}: QR Code '{$qrCode}' already exists for Plant Code {$plantCode}"; + $duplicateQrExcel[] = "Duplicate in file at Row {$index}: Document Numbers '{$qrCode}' already exists for Plant Code {$plant->name}"; } $seenPlantQr[] = $uniqueKey; @@ -227,7 +227,7 @@ class InvoiceOutValidationResource extends Resource ->first(); if ($existsInDb) { - $duplicateQrDb[] = "QR Code '{$qrCode}' already exists in DB for Plant Code {$plantCode}"; + $duplicateQrDb[] = "Document Numbers '{$qrCode}' already exists in DB for Plant Code {$plant->name}"; } }