diff --git a/app/Filament/Imports/LineImporter.php b/app/Filament/Imports/LineImporter.php index 51fe5b9..f412cf3 100644 --- a/app/Filament/Imports/LineImporter.php +++ b/app/Filament/Imports/LineImporter.php @@ -114,8 +114,8 @@ class LineImporter extends Importer $noOfOps = (int) ($this->data['no_of_operation'] ?? 0); - if ($noOfOps == null || $noOfOps == '' || !is_numeric($noOfOps)) { - throw new RowImportFailedException("'No of Operation' is required and must be a number"); + if (($noOfOps == null || $noOfOps == '' || !is_numeric($noOfOps)) && $noOfOps != 0) { + throw new RowImportFailedException("'No of Operation' is required and must be a number $noOfOps"); } if ($noOfOps > 10)