Merge pull request 'Changed logic in sticker mapping master' (#1237) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 24s

Reviewed-on: #1237
This commit was merged in pull request #1237.
This commit is contained in:
2026-10-14 04:31:05 +00:00

View File

@@ -115,14 +115,18 @@ class StickerMappingMasterImporter extends Importer
throw new RowImportFailedException(implode(', ', $warnMsg)); throw new RowImportFailedException(implode(', ', $warnMsg));
} }
StickerMappingMaster::updateOrCreate([ StickerMappingMaster::updateOrCreate(
'plant_id' => $plantId, [
'item_id' => $itemCode->id, 'plant_id' => $plantId,
'sticker_structure1_id' => $stickerId->id, 'item_id' => $itemCode->id,
'sticker1_machine_id' => $machineId->id ?? null, 'sticker_structure1_id' => $stickerId->id,
'created_by' => $operatorName, ],
'updated_by' => $operatorName, [
]); 'sticker1_machine_id' => $machineId->id ?? null,
'created_by' => $operatorName,
'updated_by' => $operatorName,
]
);
return null; return null;
} }