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
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:
@@ -334,7 +334,7 @@ class WeightValidationResource extends Resource
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (! empty($data['Item Code'])) {
|
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'])) {
|
if (! empty($data['Line'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user