From dee8246320ea3243a1e36866db8f6c89f5405fc8 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 25 May 2026 16:37:48 +0530 Subject: [PATCH] Added material type 4 on importer --- app/Filament/Imports/StickerMasterImporter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Filament/Imports/StickerMasterImporter.php b/app/Filament/Imports/StickerMasterImporter.php index 6d24a26..d222e13 100644 --- a/app/Filament/Imports/StickerMasterImporter.php +++ b/app/Filament/Imports/StickerMasterImporter.php @@ -273,8 +273,8 @@ class StickerMasterImporter extends Importer if (Str::length($this->data['bundle_quantity']) > 0 && (! is_numeric($this->data['bundle_quantity']) || $this->data['bundle_quantity'] <= 1)) { $warnMsg[] = "Bundle quantity must be greater than or equal to '2' or empty"; } - if (Str::length($this->data['material_type']) > 0 && $this->data['material_type'] != '1' && $this->data['material_type'] != '2' && $this->data['material_type'] != '3') { // ($this->data['material_type'] != null) && - $warnMsg[] = 'Material type must be 1 or 2 or 3 or empty'; + if (Str::length($this->data['material_type']) > 0 && $this->data['material_type'] != '1' && $this->data['material_type'] != '2' && $this->data['material_type'] != '3' && $this->data['material_type'] != '4') { // ($this->data['material_type'] != null) && + $warnMsg[] = 'Material type must be 1 or 2 or 3 or 4 or empty'; } if (empty($warnMsg)) {