CSR-504 | Formatting

This commit is contained in:
Scott Kiener 2022-12-13 14:53:33 -05:00
parent 7e72d9822d
commit ac13e264eb
2 changed files with 9 additions and 5 deletions

View file

@ -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(

View file

@ -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