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;