Changed batch length validation in weight validation #861
@@ -588,7 +588,7 @@ class WeightValidationResource extends Resource
|
||||
} else {
|
||||
$lineNumbers[] = $lineNumber;
|
||||
}
|
||||
if (Str::length($batchNumber) < 8 || ! is_numeric($batchNumber)) {// ctype_alnum
|
||||
if (Str::length($batchNumber) < 1 || ! is_numeric($batchNumber)) {// ctype_alnum
|
||||
$validData = false;
|
||||
$invalidBatch[] = $materialCode;
|
||||
}
|
||||
@@ -663,7 +663,7 @@ class WeightValidationResource extends Resource
|
||||
if (! empty($uniqueInvalidBatch)) {
|
||||
Notification::make()
|
||||
->title('Invalid: Batch Numbers')
|
||||
->body('Batch number should contain minimum 8 digit numeric values!<br>Following item codes has invalid batch number:<br>'.implode(', ', $uniqueInvalidBatch))
|
||||
->body('Batch number should contain minimum 1 digit numeric values!<br>Following item codes has invalid batch number:<br>'.implode(', ', $uniqueInvalidBatch))
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->send();
|
||||
|
||||
Reference in New Issue
Block a user