1
0
forked from poc/pds

Changed logic in sticker mapping master

This commit is contained in:
dhanabalan
2026-10-14 10:00:49 +05:30
parent 75f029cf74
commit 896e469d90

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;
}