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