From fff610bc2e128daff4b59e46e5cc6de963d5b962 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 23 Jan 2026 12:08:10 +0530 Subject: [PATCH] removed logic for skipping in remark import --- app/Filament/Pages/InvoicePendingReason.php | 5 +++++ app/Imports/InvoicePendingReasonImport.php | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/app/Filament/Pages/InvoicePendingReason.php b/app/Filament/Pages/InvoicePendingReason.php index 703c882..9213f0e 100644 --- a/app/Filament/Pages/InvoicePendingReason.php +++ b/app/Filament/Pages/InvoicePendingReason.php @@ -340,6 +340,7 @@ class InvoicePendingReason extends Page ->send(); $this->filtersForm->fill([ 'file' => null, + 'plant_id' => $plantId, ]); return; } @@ -352,6 +353,7 @@ class InvoicePendingReason extends Page ->send(); $this->filtersForm->fill([ 'file' => null, + 'plant_id' => $plantId, ]); return; } @@ -383,6 +385,7 @@ class InvoicePendingReason extends Page ->send(); $this->filtersForm->fill([ 'file' => null, + 'plant_id' => $plantId, ]); return; } @@ -395,6 +398,7 @@ class InvoicePendingReason extends Page ->send(); $this->filtersForm->fill([ 'file' => null, + 'plant_id' => $plantId, ]); return; } @@ -407,6 +411,7 @@ class InvoicePendingReason extends Page ->send(); $this->filtersForm->fill([ 'file' => null, + 'plant_id' => $plantId, ]); return; } diff --git a/app/Imports/InvoicePendingReasonImport.php b/app/Imports/InvoicePendingReasonImport.php index 20b0266..93972b1 100644 --- a/app/Imports/InvoicePendingReasonImport.php +++ b/app/Imports/InvoicePendingReasonImport.php @@ -72,13 +72,6 @@ class InvoicePendingReasonImport implements ToCollection ]; continue; } - else if (! $remark) { - $this->remarkEmpty[] = [ - 'row' => $rowNo, - 'reason' => "Remark can't be empty!", - ]; - continue; - } //Excel-level duplicate check $key = $plantCode . '|' . $documentNumber; -- 2.49.1