From 2929697243e56e0a26a5a7dcd3fc268f9b74cd11 Mon Sep 17 00:00:00 2001 From: hiteshkumar87 Date: Fri, 31 May 2024 19:19:37 +0530 Subject: [PATCH] CSR-2099 add ITAC deductible logic on payment and confirmation pages --- src/layouts/confirmation/confirmation.vue | 5 ++++- src/layouts/payment/payment.vue | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/layouts/confirmation/confirmation.vue b/src/layouts/confirmation/confirmation.vue index 39da072a3..afdfc8e35 100644 --- a/src/layouts/confirmation/confirmation.vue +++ b/src/layouts/confirmation/confirmation.vue @@ -289,6 +289,9 @@ export default { isNoComp() { return store.getters.submittedOrder.policy.isNoComp; }, + isItac() { + return store.getters.submittedOrder.policy.isItac; + }, hasVapsInCart() { if (this.lineItems?.vaps?.length > 0) { return true; @@ -297,7 +300,7 @@ export default { }, showInsuranceCoverageAs() { if (!this.isInsurance) return null; - if (this.isNoComp) { + if (this.isNoComp || this.isItac) { return coverageStatus.NOCOMP; } else { return store.getters.submittedOrder.payment.insuranceCoverage.coverageStatus; diff --git a/src/layouts/payment/payment.vue b/src/layouts/payment/payment.vue index e21780181..7f7b531f5 100644 --- a/src/layouts/payment/payment.vue +++ b/src/layouts/payment/payment.vue @@ -434,6 +434,9 @@ export default { isNoComp() { return this.$store.getters.policy.isNoComp; }, + isItac() { + return this.$store.getters.policy.isItac; + }, hasVapsInCart() { if (this.lineItems?.vaps?.length > 0) { return true; @@ -442,7 +445,7 @@ export default { }, showInsuranceCoverageAs() { if (!this.isInsurance) return null; - if (this.isNoComp) { + if (this.isNoComp || this.isItac) { return coverageStatus.NOCOMP; } else { return this.$store.getters.payment.insuranceCoverage.coverageStatus;