From e5709444f9c5745b03334dac9c20371141b67fd9 Mon Sep 17 00:00:00 2001 From: Michaela Brydon Date: Mon, 4 Mar 2024 15:19:36 -0500 Subject: [PATCH] Removing comment --- src/store/index.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index 098b7f84..3aad08dc 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1505,7 +1505,6 @@ export const useMainStore = defineStore({ this.applicationUser.pageData[issPageValues.MOLDING_QUESTIONS] = null; this.applicationUser.pageData[issPageValues.CAPABILITY_QUESTIONS] = null; }, - // TODO when schedule reset, supporting items modified resetSchedule() { this.order.schedule.date = null; this.order.schedule.startTime = null; @@ -1513,15 +1512,6 @@ export const useMainStore = defineStore({ this.order.schedule.routeCode = null; this.order.schedule.jobMaxMinutes = null; this.order.schedule.jobMinMinutes = null; - - // premium appointment fee used on schedule page also needs reset when schedule is reset - const { supportingItems } = this.order.lineItems; - const premiumAppointmentFeeIndex = supportingItems?.findIndex((item) => item.partType === PREMIUM_FEE_PART_TYPE); - - if (premiumAppointmentFeeIndex >= 0) { - supportingItems.splice(premiumAppointmentFeeIndex, 1); - state.order.lineItems.supportingItems = supportingItems; - } }, resetDamageState() { this.order.damage.isRepair = null; @@ -2027,7 +2017,6 @@ export const useMainStore = defineStore({ if (!isSelectedGlassAvailableForVehicle) { this.resetDamageState(); this.resetGlassPartsState(); - // TODO probably reset supporting items } // Save new values @@ -2046,7 +2035,6 @@ export const useMainStore = defineStore({ if (!isSelectedGlassAvailableForVehicle) { this.resetDamageState(); this.resetGlassPartsState(); - // TODO probably reset supporting items } // Save new values