replacing policy.isITAC with isITAC
This commit is contained in:
parent
2b6ec3d7cf
commit
93bc1520a2
1 changed files with 5 additions and 5 deletions
|
|
@ -187,7 +187,7 @@ export default {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
showDeductibleCartItem() {
|
showDeductibleCartItem() {
|
||||||
return !useMainStore().isNoComp && !useMainStore().policy.isITAC;
|
return !useMainStore().isNoComp && !useMainStore().isITAC;
|
||||||
},
|
},
|
||||||
deductible() {
|
deductible() {
|
||||||
// Note: added as computed so it can be used in the template.
|
// Note: added as computed so it can be used in the template.
|
||||||
|
|
@ -204,11 +204,11 @@ export default {
|
||||||
return getPriceOfLineItems(this.baseServiceLineItems) ?? 0;
|
return getPriceOfLineItems(this.baseServiceLineItems) ?? 0;
|
||||||
},
|
},
|
||||||
isUnverified() {
|
isUnverified() {
|
||||||
return !useMainStore().isNoComp && !useMainStore().policy.isITAC
|
return !useMainStore().isNoComp && !useMainStore().isITAC
|
||||||
&& (this.deductible == null || !useMainStore().isVerifiedCoverageStatus);
|
&& (this.deductible == null || !useMainStore().isVerifiedCoverageStatus);
|
||||||
},
|
},
|
||||||
subTotal() {
|
subTotal() {
|
||||||
const basePrice = !useMainStore().isNoComp && !useMainStore().policy.isITAC
|
const basePrice = !useMainStore().isNoComp && !useMainStore().isITAC
|
||||||
? this.deductible
|
? this.deductible
|
||||||
: this.baseServicePrice;
|
: this.baseServicePrice;
|
||||||
const nonPackageCartItemsPrice = this.nonServicePackageCartItems?.reduce(
|
const nonPackageCartItemsPrice = this.nonServicePackageCartItems?.reduce(
|
||||||
|
|
@ -283,7 +283,7 @@ export default {
|
||||||
return items;
|
return items;
|
||||||
},
|
},
|
||||||
nonServicePackageCartItems() {
|
nonServicePackageCartItems() {
|
||||||
const vapPartTypesInOrder = Array.from(new Set(useMainStore().lineItems.vaps.map((vap) => vap.partType)));
|
const vapPartTypesInOrder = Array.from(new Set(useMainStore().lineItems.vaps?.map((vap) => vap.partType) ?? []));
|
||||||
const vapPartTypesInOrderButNotPackage = vapPartTypesInOrder
|
const vapPartTypesInOrderButNotPackage = vapPartTypesInOrder
|
||||||
.filter((partType) => !this.partTypesInServicePackage.includes(partType))
|
.filter((partType) => !this.partTypesInServicePackage.includes(partType))
|
||||||
?? [];
|
?? [];
|
||||||
|
|
@ -386,7 +386,7 @@ export default {
|
||||||
return canBeVerifyingCoverage
|
return canBeVerifyingCoverage
|
||||||
&& this.isUnverified
|
&& this.isUnverified
|
||||||
&& !useMainStore().isNoComp
|
&& !useMainStore().isNoComp
|
||||||
&& !useMainStore().policy.isITAC
|
&& !useMainStore().isITAC
|
||||||
? VERIFYING_COVERAGE
|
? VERIFYING_COVERAGE
|
||||||
: formatAmountInDollars(amount);
|
: formatAmountInDollars(amount);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue