Changed logic in sticker mapping master #1237
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user