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
Showing only changes of commit 896e469d90 - Show all commits

View File

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