add ITAC deductible logic on payment and confirmation pages
This commit is contained in:
hiteshkumar87 2024-05-31 19:19:37 +05:30
parent c3021ff42f
commit 2929697243
2 changed files with 8 additions and 2 deletions

View file

@ -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;

View file

@ -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;