Changed logic in sticker mapping master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Laravel Pint / pint (pull_request) Successful in 5m13s
Laravel Larastan / larastan (pull_request) Failing after 6m40s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Laravel Pint / pint (pull_request) Successful in 5m13s
Laravel Larastan / larastan (pull_request) Failing after 6m40s
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