Changed batch length validation in weight validation
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Laravel Pint / pint (pull_request) Successful in 2m58s
Laravel Larastan / larastan (pull_request) Failing after 3m49s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Laravel Pint / pint (pull_request) Successful in 2m58s
Laravel Larastan / larastan (pull_request) Failing after 3m49s
This commit is contained in:
@@ -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