Changed batch length validation in weight validation #861
@@ -588,7 +588,7 @@ class WeightValidationResource extends Resource
|
|||||||
} else {
|
} else {
|
||||||
$lineNumbers[] = $lineNumber;
|
$lineNumbers[] = $lineNumber;
|
||||||
}
|
}
|
||||||
if (Str::length($batchNumber) < 8 || ! is_numeric($batchNumber)) {// ctype_alnum
|
if (Str::length($batchNumber) < 1 || ! is_numeric($batchNumber)) {// ctype_alnum
|
||||||
$validData = false;
|
$validData = false;
|
||||||
$invalidBatch[] = $materialCode;
|
$invalidBatch[] = $materialCode;
|
||||||
}
|
}
|
||||||
@@ -663,7 +663,7 @@ class WeightValidationResource extends Resource
|
|||||||
if (! empty($uniqueInvalidBatch)) {
|
if (! empty($uniqueInvalidBatch)) {
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Invalid: Batch Numbers')
|
->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()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(2)
|
||||||
->send();
|
->send();
|
||||||
|
|||||||
Reference in New Issue
Block a user