Removing comment

This commit is contained in:
Michaela Brydon 2024-03-04 15:19:36 -05:00
parent c7ffb35e4c
commit e5709444f9

View file

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