Make cart work with MSR before split pay is implemented
This commit is contained in:
parent
1836e6c83f
commit
3af2d3e737
1 changed files with 6 additions and 2 deletions
|
|
@ -237,7 +237,7 @@ export default {
|
|||
if (this.recycleFeeCartItem && !isRecycleFeeHidden) {
|
||||
items.push(this.recycleFeeCartItem);
|
||||
}
|
||||
if (this.mobileFeeCartItem && !isMobileFeeHidden) {
|
||||
if (this.mobileFeeCartItem && !isMobileFeeHidden && !this.mobileFeeCartItem.isInsurable) {
|
||||
items.push(this.mobileFeeCartItem);
|
||||
}
|
||||
const vapPartTypesInOrder = Array.from(new Set(this.lineItems.vaps?.map((vap) => vap.partType) ?? []));
|
||||
|
|
@ -306,7 +306,7 @@ export default {
|
|||
},
|
||||
mobileFeeCartItem() {
|
||||
const mobileFeeLineItem = getMobileFeeLineItem(this.cartOrder);
|
||||
return mobileFeeLineItem
|
||||
const cartItem = mobileFeeLineItem
|
||||
? this.getCartItem(
|
||||
this.getCmsContent(this.widget.mobileFee, widgetFields.TEXT_BLOCK_WIDGET.TEXT),
|
||||
[mobileFeeLineItem],
|
||||
|
|
@ -314,6 +314,10 @@ export default {
|
|||
partTypeStrings.MOBILE_FEE
|
||||
)
|
||||
: null;
|
||||
if (cartItem) {
|
||||
cartItem["isInsurable"] = mobileFeeLineItem?.isInsurable;
|
||||
}
|
||||
return cartItem;
|
||||
},
|
||||
warrantyCartItem() {
|
||||
const label = this.cartOrder.damage.glassToReplace?.length > 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue