Moving recycle line item above first use

This commit is contained in:
Michaela Brydon 2024-04-09 15:20:15 -04:00
parent b748ef94af
commit 0b8bdda34a

View file

@ -196,6 +196,10 @@ export default {
// Note: added as computed so it can be used in the template.
return useMainStore().order.currentDeductible;
},
recycleFeeLineItem() {
return useMainStore().lineItems.supportingItems
?.find((lineItem) => lineItem.partNumber === partNumberStrings.RECYCLE_FEE);
},
baseServiceLineItems() {
const { supportingItems, glassParts, otherParts } = useMainStore().lineItems;
const parts = [
@ -225,10 +229,6 @@ export default {
? this.deductible + getPriceOfLineItems([...this.feeLineItems, ...(vaps ?? [])])
: getPriceOfLineItems(allLineItems);
},
recycleFeeLineItem() {
return useMainStore().lineItems.supportingItems
?.find((lineItem) => lineItem.partNumber === partNumberStrings.RECYCLE_FEE);
},
feeLineItems() {
const { mobileFee } = useMainStore().lineItems;
const result = [];