CASH-2488: MSR Fee for cash
This commit is contained in:
parent
31ed28bdd5
commit
1d78ed5871
1 changed files with 6 additions and 5 deletions
|
|
@ -970,8 +970,7 @@ export default {
|
|||
const msrFeeLineItem = this.getMsrFeeLineItem;
|
||||
const shouldCreateMsrFeeCartItem =
|
||||
this.isMSRFeeApplicable &&
|
||||
this.isInsurance &&
|
||||
!this.IsMSRFeeCoveredByInsurance &&
|
||||
(!this.isInsurance || !this.IsMSRFeeCoveredByInsurance) &&
|
||||
msrFeeLineItem &&
|
||||
this.msrFeeAmount > 0;
|
||||
|
||||
|
|
@ -980,7 +979,7 @@ export default {
|
|||
name: this.msrFeeCartItemName,
|
||||
category: cartItemCategories.SUPPORTING_ITEMS,
|
||||
cartItemType: cartItemTypes.MOBILE_FEE,
|
||||
isDisplayed: this.isInsurance,
|
||||
isDisplayed: true,
|
||||
isRemovable: true,
|
||||
subTotal: 0,
|
||||
salesTax: 0,
|
||||
|
|
@ -1007,8 +1006,10 @@ export default {
|
|||
return this.getCmsContent("RecycleTextBlock", "Text");
|
||||
},
|
||||
msrToolTipBodyText() {
|
||||
let cmsContentText = this.getCmsContent("MSRModal", "BodyText");
|
||||
if (cmsContentText) {
|
||||
let cmsContentText = this.isInsurance
|
||||
? this.getCmsContent("MSRModal", "BodyText")
|
||||
: this.getCmsContent("MSRModal", "BodyText2");
|
||||
if (this.isInsurance && cmsContentText) {
|
||||
cmsContentText = cmsContentText.replaceAll(
|
||||
"{custom:mobileFee}",
|
||||
formatToUSDollar(this.msrFeeAmount)
|
||||
|
|
|
|||
Loading…
Reference in a new issue