Removing new data properties

This commit is contained in:
Michaela Brydon 2024-03-29 10:11:56 -04:00
parent f353ca414b
commit 8f718d03db

View file

@ -23,7 +23,7 @@
id="cart-deductible-or-base-price"
class="cart-item cart-gray">
<div
v-if="!isNoComp && !isITAC"
v-if="showDeductibleLineItem"
id="cart-deductible"
class="d-flex justify-content-between align-items-center">
<span id="deductible-label">{{ deductibleLabel }}</span>
@ -177,8 +177,6 @@ export default {
const { supportingItems, glassParts, otherParts, vaps } = useMainStore().lineItems;
return {
isNoComp: useMainStore().isNoComp,
isITAC: useMainStore().policy.isITAC,
isRepair,
glassToReplace: glassToReplace ?? [],
vapsInOrder: vaps ?? [],
@ -203,15 +201,18 @@ export default {
};
},
computed: {
showDeductibleLineItem() {
return !useMainStore().isNoComp && !useMainStore().policy.isITAC;
},
baseServicePrice() {
return getPriceOfLineItems(this.baseServiceLineItems);
},
isUnverified() {
return !this.isNoComp && !this.isITAC
return !useMainStore().isNoComp && !useMainStore().policy.isITAC
&& (this.deductible == null || !useMainStore().isVerifiedCoverageStatus);
},
subTotal() {
const basePrice = !this.isNoComp && !this.isITAC
const basePrice = !useMainStore().isNoComp && !useMainStore().policy.isITAC
? this.deductible
: this.baseServicePrice;
const nonPackageCartItemsPrice = this.nonServicePackageCartItems?.reduce(