Updated plant code length should be 4 to 7
This commit is contained in:
@@ -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!';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user