diff --git a/src/layouts/service-location/service-location.vue b/src/layouts/service-location/service-location.vue index c25826121..0eaaffbd4 100644 --- a/src/layouts/service-location/service-location.vue +++ b/src/layouts/service-location/service-location.vue @@ -380,20 +380,15 @@ export default { updateAndSaveSupportingItems() { const supportingItems = store.getters.lineItems.supportingItems; // if we have a mobile fee, then save/update supporting items - if ( - this.selectedAppointmentType == "Mobile" - ) { + if (this.selectedAppointmentType == "Mobile") { const mobileFeeIndex = supportingItems.findIndex( (item) => item.partType == MOBILE_FEE_PART_TYPE ); // If it already exists, update the price with latest data if (mobileFeeIndex >= 0) { - supportingItems[mobileFeeIndex].laborAmount = - this.mobileFeePart.laborAmount; - supportingItems[mobileFeeIndex].selingPrice = - this.mobileFeePart.selingPrice; - supportingItems[mobileFeeIndex].kitPrice = - this.mobileFeePart.kitPrice; + supportingItems[mobileFeeIndex].laborAmount = this.mobileFeePart.laborAmount; + supportingItems[mobileFeeIndex].selingPrice = this.mobileFeePart.selingPrice; + supportingItems[mobileFeeIndex].kitPrice = this.mobileFeePart.kitPrice; } else { supportingItems.push(this.mobileFeePart); } @@ -404,7 +399,6 @@ export default { false ); } else { - // if it's not a mobile, then make sure we remove any that may have been added const removeMobileFeeIndex = supportingItems.findIndex( (item) => item.partType == MOBILE_FEE_PART_TYPE