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; this.selectedVaps = vapsItemsSelected;
}, },
filterOutFees(currentSupportingItems) { filterOutFees(currentSupportingItems) {
const filteredSupportingItems = currentSupportingItems.filter(item => { const filteredSupportingItems = currentSupportingItems.filter((item) => {
return !item.partType.includes("FEE") || (item.partType === "REPAIR FEE" && item.partNumber != "SUPPLIES-REPAIR"); return (
!item.partType.includes("FEE") ||
(item.partType === "REPAIR FEE" && item.partNumber != "SUPPLIES-REPAIR")
);
}); });
return filteredSupportingItems; return filteredSupportingItems;
}, },
@ -175,14 +178,15 @@ export default {
this.isInsuranceSelected, this.isInsuranceSelected,
false 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.dispatchStoreAction(
this.storeActions.SAVE_ACCOUNT_NUMBER, this.storeActions.SAVE_ACCOUNT_NUMBER,
applicationConfig.CASH_ACCOUNT_NUMBER, applicationConfig.CASH_ACCOUNT_NUMBER,
false 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.supportingItems = this.filterOutFees(this.supportingItems);
} }
this.dispatchStoreAction( this.dispatchStoreAction(