Added item characteristics excel import functionality with validations
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 17s
Laravel Pint / pint (pull_request) Successful in 2m13s
Laravel Larastan / larastan (pull_request) Failing after 5m23s

This commit is contained in:
dhanabalan
2026-11-20 11:52:57 +05:30
parent 3494823559
commit 95624ea9ea
2 changed files with 201 additions and 199 deletions

View File

@@ -744,8 +744,8 @@ class ItemCharacteristicImporter extends Importer
$warnMsg[] = 'Invalid item code found';
}
if(!empty($iCode)){
$item = Item::where('plant_id',$plant->id)->where('code', $iCode)->first();
if (! empty($iCode)) {
$item = Item::where('plant_id', $plant->id)->where('code', $iCode)->first();
if (! $item) {
$warnMsg[] = 'Item Code not found';