3 Commits

Author SHA1 Message Date
961c281c02 Update dependency althinect/filament-spatie-roles-permissions to v4
Some checks failed
renovate/artifacts Artifact file update failure
Gemini PR Review / Gemini PR Review (pull_request) Failing after 22s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 21s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 18s
Laravel Larastan / larastan (pull_request) Failing after 2m31s
Laravel Pint / pint (pull_request) Failing after 2m45s
2026-07-26 00:00:53 +00:00
62e577a87f Merge pull request 'Changed batch length validation in weight validation' (#861) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 21s
Reviewed-on: #861
2026-07-24 11:57:14 +00:00
dhanabalan
dbd7c2860f 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
2026-07-24 17:26:59 +05:30
2 changed files with 3 additions and 3 deletions

View File

@@ -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();

View File

@@ -8,7 +8,7 @@
"require": {
"php": "^8.2",
"alperenersoy/filament-export": "^3.0",
"althinect/filament-spatie-roles-permissions": "^2.3",
"althinect/filament-spatie-roles-permissions": "^4.0",
"diogogpinto/filament-auth-ui-enhancer": "^1.0",
"erag/laravel-pwa": "^1.9",
"filament/filament": "^3.3",