From c798b69bda528952895ee40f37405ef2ba913408 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Thu, 23 May 2024 19:49:23 -0400 Subject: [PATCH] CSR-2099: possible fix that treats NoComp and ITAC the same as far as cart appearance --- src/fmg-components/cart/cart.vue | 3 +++ src/layouts/payment-method/payment-method.vue | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/fmg-components/cart/cart.vue b/src/fmg-components/cart/cart.vue index dcf1375b7..f52b1237c 100644 --- a/src/fmg-components/cart/cart.vue +++ b/src/fmg-components/cart/cart.vue @@ -297,6 +297,9 @@ export default { showCoverageAsVerified() { return this.showInsuranceCoverageAs === coverageStatus.VERIFIED; }, + showCoverageAsNoCompOrItac() { + return this.showInsuranceCoverageAs === coverageStatus.NOCOMP; + }, currentDeductible() { const deductible = this.insuranceDeductible; if (!(deductible === 0 || deductible > 0)) { diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index 81a2442aa..29f36306d 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -527,7 +527,11 @@ export default { ? this.$store.getters.submittedOrder.policy.isNoComp : this.$store.getters.policy.isNoComp; }, - + isItac() { + return this.hasSubmittedOrder() + ? this.$store.getters.submittedOrder.policy.isItac + : this.$store.getters.policy.isItac; + }, hasVapsInCart() { if (this.lineItems?.vaps?.length > 0) { return true; @@ -536,7 +540,7 @@ export default { }, showInsuranceCoverageAs() { if (!this.isInsurance) return null; - if (this.isNoComp) { + if (this.isNoComp || this.isItac) { return coverageStatus.NOCOMP; } else { return this.hasSubmittedOrder()