CSR-2398
check actual recalibration required on the part or the child parts
This commit is contained in:
parent
6a573bdd90
commit
9b3e8191b1
1 changed files with 9 additions and 4 deletions
|
|
@ -41,7 +41,11 @@ import {
|
|||
coverageTypeValue,
|
||||
coverageTypeEnum,
|
||||
} from "@/constants/insurance";
|
||||
import { containsRecalParts, getTopLevelPartsWithRecal } from "@/helpers/recal-helper";
|
||||
import {
|
||||
containsRecalParts,
|
||||
getTopLevelPartsWithRecal,
|
||||
isRecalPartOrHasChildRecalPart,
|
||||
} from "@/helpers/recal-helper";
|
||||
import { externalParameterStatus } from "@/constants/external-parameters";
|
||||
import { experimentSettings } from "@/constants/experiments";
|
||||
import experimentMixin from "@/mixins/experiment-mixin.js";
|
||||
|
|
@ -1651,9 +1655,10 @@ export const actions = {
|
|||
const partialLineItemsObjects = context.getters.order.lineItems.glassParts?.map(
|
||||
(lineItem) => ({
|
||||
partNumber: lineItem.partNumber,
|
||||
recalibrationType: lineItem.recalibrationType
|
||||
? escapeRecalibrationType(lineItem.recalibrationType)
|
||||
: undefined,
|
||||
recalibrationType:
|
||||
lineItem.recalibrationType && isRecalPartOrHasChildRecalPart(lineItem)
|
||||
? escapeRecalibrationType(lineItem.recalibrationType)
|
||||
: undefined,
|
||||
})
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue