CSR-2099
add ITAC deductible logic on payment and confirmation pages
This commit is contained in:
parent
c3021ff42f
commit
2929697243
2 changed files with 8 additions and 2 deletions
|
|
@ -289,6 +289,9 @@ export default {
|
||||||
isNoComp() {
|
isNoComp() {
|
||||||
return store.getters.submittedOrder.policy.isNoComp;
|
return store.getters.submittedOrder.policy.isNoComp;
|
||||||
},
|
},
|
||||||
|
isItac() {
|
||||||
|
return store.getters.submittedOrder.policy.isItac;
|
||||||
|
},
|
||||||
hasVapsInCart() {
|
hasVapsInCart() {
|
||||||
if (this.lineItems?.vaps?.length > 0) {
|
if (this.lineItems?.vaps?.length > 0) {
|
||||||
return true;
|
return true;
|
||||||
|
|
@ -297,7 +300,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 store.getters.submittedOrder.payment.insuranceCoverage.coverageStatus;
|
return store.getters.submittedOrder.payment.insuranceCoverage.coverageStatus;
|
||||||
|
|
|
||||||
|
|
@ -434,6 +434,9 @@ export default {
|
||||||
isNoComp() {
|
isNoComp() {
|
||||||
return this.$store.getters.policy.isNoComp;
|
return this.$store.getters.policy.isNoComp;
|
||||||
},
|
},
|
||||||
|
isItac() {
|
||||||
|
return this.$store.getters.policy.isItac;
|
||||||
|
},
|
||||||
hasVapsInCart() {
|
hasVapsInCart() {
|
||||||
if (this.lineItems?.vaps?.length > 0) {
|
if (this.lineItems?.vaps?.length > 0) {
|
||||||
return true;
|
return true;
|
||||||
|
|
@ -442,7 +445,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.$store.getters.payment.insuranceCoverage.coverageStatus;
|
return this.$store.getters.payment.insuranceCoverage.coverageStatus;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue