CSR-2099: possible fix that treats NoComp and ITAC the same as far as cart appearance

This commit is contained in:
Adam Caouette 2024-05-23 19:49:23 -04:00
parent f634b58edc
commit c798b69bda
2 changed files with 9 additions and 2 deletions

View file

@ -297,6 +297,9 @@ export default {
showCoverageAsVerified() { showCoverageAsVerified() {
return this.showInsuranceCoverageAs === coverageStatus.VERIFIED; return this.showInsuranceCoverageAs === coverageStatus.VERIFIED;
}, },
showCoverageAsNoCompOrItac() {
return this.showInsuranceCoverageAs === coverageStatus.NOCOMP;
},
currentDeductible() { currentDeductible() {
const deductible = this.insuranceDeductible; const deductible = this.insuranceDeductible;
if (!(deductible === 0 || deductible > 0)) { if (!(deductible === 0 || deductible > 0)) {

View file

@ -527,7 +527,11 @@ export default {
? this.$store.getters.submittedOrder.policy.isNoComp ? this.$store.getters.submittedOrder.policy.isNoComp
: this.$store.getters.policy.isNoComp; : this.$store.getters.policy.isNoComp;
}, },
isItac() {
return this.hasSubmittedOrder()
? this.$store.getters.submittedOrder.policy.isItac
: this.$store.getters.policy.isItac;
},
hasVapsInCart() { hasVapsInCart() {
if (this.lineItems?.vaps?.length > 0) { if (this.lineItems?.vaps?.length > 0) {
return true; return true;
@ -536,7 +540,7 @@ export default {
}, },
showInsuranceCoverageAs() { showInsuranceCoverageAs() {
if (!this.isInsurance) return null; if (!this.isInsurance) return null;
if (this.isNoComp) { if (this.isNoComp || this.isItac) {
return coverageStatus.NOCOMP; return coverageStatus.NOCOMP;
} else { } else {
return this.hasSubmittedOrder() return this.hasSubmittedOrder()