Updated validation checks in WorkGroupMasterImporter to ensure name and operation number are not empty

This commit is contained in:
dhanabalan
2025-09-15 15:55:29 +05:30
parent b222c78d4b
commit d4582292a4

View File

@@ -66,7 +66,7 @@ class WorkGroupMasterImporter extends Importer
$warnMsg[] = "Plant not found"; $warnMsg[] = "Plant not found";
} }
if (Str::length($this->data['name']) < 0) { //|| !ctype_alnum($this->data['description']) if (Str::length($this->data['name']) <= 0) { //|| !ctype_alnum($this->data['description'])
$warnMsg[] = "Invalid name found"; $warnMsg[] = "Invalid name found";
} }
@@ -80,7 +80,7 @@ class WorkGroupMasterImporter extends Importer
$warnMsg[] = "Description should be less than 44 digits."; $warnMsg[] = "Description should be less than 44 digits.";
} }
if (Str::length($this->data['operation_number']) < 0) { if (Str::length($this->data['operation_number']) <= 0) {
$warnMsg[] = "Invalid operation number found"; $warnMsg[] = "Invalid operation number found";
} }