CASH-70: Pass isMSRFeeApplicable to cart component
This commit is contained in:
parent
64e373228f
commit
b8b63da5bb
3 changed files with 12 additions and 6 deletions
|
|
@ -200,6 +200,7 @@ export default {
|
||||||
isItac: Boolean,
|
isItac: Boolean,
|
||||||
isNoComp: Boolean,
|
isNoComp: Boolean,
|
||||||
isExpandedOnLoad: Boolean,
|
isExpandedOnLoad: Boolean,
|
||||||
|
isMSRFeeApplicable: Boolean,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -846,9 +847,6 @@ export default {
|
||||||
isCashItacNoComp() {
|
isCashItacNoComp() {
|
||||||
return !this.isInsurance || this.isITAC || this.isNoComp;
|
return !this.isInsurance || this.isITAC || this.isNoComp;
|
||||||
},
|
},
|
||||||
getIsMSRFeeApplicableFromStore() {
|
|
||||||
return this.$store.getters.order.isMSRFeeApplicable;
|
|
||||||
},
|
|
||||||
mobileFeeCartItemName() {
|
mobileFeeCartItemName() {
|
||||||
return this.getCmsContent("MobileServiceTextWidget", "Text");
|
return this.getCmsContent("MobileServiceTextWidget", "Text");
|
||||||
},
|
},
|
||||||
|
|
@ -865,7 +863,7 @@ export default {
|
||||||
(mobileFeeLineItem?.sellingPrice ?? 0);
|
(mobileFeeLineItem?.sellingPrice ?? 0);
|
||||||
|
|
||||||
if (mobileTotal > 0) {
|
if (mobileTotal > 0) {
|
||||||
if (this.getIsMSRFeeApplicableFromStore) {
|
if (this.isMSRFeeApplicable) {
|
||||||
showMobileFeeCartItem = this.isCashItacNoComp;
|
showMobileFeeCartItem = this.isCashItacNoComp;
|
||||||
} else {
|
} else {
|
||||||
showMobileFeeCartItem = true;
|
showMobileFeeCartItem = true;
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,8 @@
|
||||||
:shouldHideRecalibration="shouldHideRecalibration"
|
:shouldHideRecalibration="shouldHideRecalibration"
|
||||||
:isExpandedOnLoad="false"
|
:isExpandedOnLoad="false"
|
||||||
:isItac="isItac"
|
:isItac="isItac"
|
||||||
:isNoComp="isNoComp" />
|
:isNoComp="isNoComp"
|
||||||
|
:isMSRFeeApplicable="isMSRFeeApplicable" />
|
||||||
|
|
||||||
<div class="mt-3" v-if="DisplayFosterLove">
|
<div class="mt-3" v-if="DisplayFosterLove">
|
||||||
<donationBlock
|
<donationBlock
|
||||||
|
|
@ -423,6 +424,9 @@ export default {
|
||||||
damageInfo() {
|
damageInfo() {
|
||||||
return this.submittedOrder?.damage;
|
return this.submittedOrder?.damage;
|
||||||
},
|
},
|
||||||
|
isMSRFeeApplicable() {
|
||||||
|
return this.submittedOrder?.isMSRFeeApplicable;
|
||||||
|
},
|
||||||
isInsurance() {
|
isInsurance() {
|
||||||
return this.submittedOrder?.payment?.isInsurance;
|
return this.submittedOrder?.payment?.isInsurance;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,8 @@
|
||||||
:shouldHideRecalibration="shouldHideRecalibration"
|
:shouldHideRecalibration="shouldHideRecalibration"
|
||||||
:isItac="isItac"
|
:isItac="isItac"
|
||||||
:isNoComp="isNoComp"
|
:isNoComp="isNoComp"
|
||||||
:isExpandedOnLoad="false" />
|
:isExpandedOnLoad="false"
|
||||||
|
:isMSRFeeApplicable="isMSRFeeApplicable" />
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
|
|
@ -683,6 +684,9 @@ export default {
|
||||||
damageInfo() {
|
damageInfo() {
|
||||||
return this.$store.getters.damage;
|
return this.$store.getters.damage;
|
||||||
},
|
},
|
||||||
|
isMSRFeeApplicable() {
|
||||||
|
return this.$store.getters.order.isMSRFeeApplicable;
|
||||||
|
},
|
||||||
isInsurance() {
|
isInsurance() {
|
||||||
return this.hasSubmittedOrder()
|
return this.hasSubmittedOrder()
|
||||||
? this.getSubmittedOrder()?.payment.isInsurance
|
? this.getSubmittedOrder()?.payment.isInsurance
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue