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
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user