1
0
forked from poc/pds

Updated plant code length should be 4 to 7

This commit is contained in:
dhanabalan
2026-04-30 15:44:39 +05:30
parent 04cbf548de
commit 4de8a306ea
5 changed files with 13 additions and 7 deletions

View File

@@ -100,7 +100,7 @@ class ProductionOrderImporter extends Importer
$warnMsg[] = 'Plant code should contain only numeric values!';
} elseif (Str::length($plantCod) < 4 || Str::length($plantCod) > 7) {
$warnMsg[] = 'Plant code must be between 4 and 7 digits only!';
} elseif (! preg_match('/^[1-9]\d{6,}$/', $plantCod)) {
} elseif (! preg_match('/^[1-9]\d{3,6}$/', $plantCod)) {
$warnMsg[] = 'Invalid plant code found!';
}