Validate production order length to be between 7 and 14 digits in both ProductionQuantityImporter and QualityValidationImporter
This commit is contained in:
@@ -206,7 +206,7 @@ class QualityValidationImporter extends Importer
|
||||
$warnMsg[] = "Sticker item code not found";
|
||||
}
|
||||
|
||||
if (!is_numeric($this->data['production_order']) || Str::length($this->data['production_order']) < 7) {
|
||||
if (!is_numeric($this->data['production_order']) || Str::length($this->data['production_order']) < 7 || Str::length($this->data['production_order']) > 14) {
|
||||
$warnMsg[] = "Invalid production order found";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user