Refactor item code retrieval in WeightValidationResource table method
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 11s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Laravel Pint / pint (pull_request) Successful in 2m33s
Laravel Larastan / larastan (pull_request) Failing after 3m17s

This commit is contained in:
dhanabalan
2026-01-14 12:17:18 +05:30
parent 9540fb95c9
commit 011632b725

View File

@@ -334,7 +334,7 @@ class WeightValidationResource extends Resource
}
if (! empty($data['Item Code'])) {
$indicators[] = 'Item Code: '.$data['Item Code'];
$indicators[] = 'Item Code: '.Item::where('id', $data['Item Code'])->value('code');
}
if (! empty($data['Line'])) {