Changed logic in sticker mapping master #1237

Merged
jothi merged 1 commits from ranjith-dev into master 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;
} }