diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index 8975d5f37..427d2f5f7 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -161,8 +161,11 @@ export default { this.selectedVaps = vapsItemsSelected; }, filterOutFees(currentSupportingItems) { - const filteredSupportingItems = currentSupportingItems.filter(item => { - return !item.partType.includes("FEE") || (item.partType === "REPAIR FEE" && item.partNumber != "SUPPLIES-REPAIR"); + const filteredSupportingItems = currentSupportingItems.filter((item) => { + return ( + !item.partType.includes("FEE") || + (item.partType === "REPAIR FEE" && item.partNumber != "SUPPLIES-REPAIR") + ); }); return filteredSupportingItems; }, @@ -175,14 +178,15 @@ export default { this.isInsuranceSelected, false ); - if(!this.isInsuranceSelected) { // Need to double check this is the way to update to cash parent account number + if (!this.isInsuranceSelected) { + // Need to double check this is the way to update to cash parent account number this.dispatchStoreAction( this.storeActions.SAVE_ACCOUNT_NUMBER, applicationConfig.CASH_ACCOUNT_NUMBER, false ); } - if(this.$store.getters.order.accountNumber != applicationConfig.CASH_ACCOUNT_NUMBER) { + if (this.$store.getters.order.accountNumber != applicationConfig.CASH_ACCOUNT_NUMBER) { this.supportingItems = this.filterOutFees(this.supportingItems); } this.dispatchStoreAction( diff --git a/src/store/index.js b/src/store/index.js index 6f5883d18..817c852a9 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1420,7 +1420,7 @@ export const actions = { context.commit(storeMutations.UPDATE_LINE_ITEMS_SERVER_DATA, response.data.serverData); availableLineItems = addPricesToLineItems(availableLineItems, response.data.lineItems); - + return availableLineItems; }, // Misc order actions