diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index 5b6ab980f..704ad007d 100644 --- a/src/layouts/schedule/schedule.vue +++ b/src/layouts/schedule/schedule.vue @@ -439,16 +439,16 @@ export default { this.appointmentType === AppointmentTypeStrings.MOBILE && this.selectedTimeSlotInfo?.isPremiumAppointment ) { - const earlyBirdIndex = supportingItems.findIndex( + const premiumFeeIndex = supportingItems.findIndex( (item) => item.partType == PREMIUM_FEE_PART_TYPE ); - if (earlyBirdIndex >= 0) { - supportingItems[earlyBirdIndex].laborAmount = + if (premiumFeeIndex >= 0) { + supportingItems[premiumFeeIndex].laborAmount = this.mobilePremiumAppointmentFee.laborAmount; - supportingItems[earlyBirdIndex].selingPrice = - this.mobilePremiumAppointmentFee.selingPrice; - supportingItems[earlyBirdIndex].kitPrice = + supportingItems[premiumFeeIndex].sellingPrice = + this.mobilePremiumAppointmentFee.sellingPrice; + supportingItems[premiumFeeIndex].kitPrice = this.mobilePremiumAppointmentFee.kitPrice; } else { supportingItems.push(this.mobilePremiumAppointmentFee); @@ -461,12 +461,12 @@ export default { ); } else { // if it's not a mobile and/or premium early bird, then make sure we remove any that may have been added - const removeEarlyBirdIndex = supportingItems.findIndex( + const removePremiumFeeIndex = supportingItems.findIndex( (item) => item.partType == PREMIUM_FEE_PART_TYPE ); - if (removeEarlyBirdIndex >= 0) { - supportingItems.splice(removeEarlyBirdIndex, 1); + if (removePremiumFeeIndex >= 0) { + supportingItems.splice(removePremiumFeeIndex, 1); this.dispatchStoreAction( this.storeActions.SAVE_SUPPORTING_ITEMS_SUPPRESSING_STATE_RESETTING, supportingItems, diff --git a/src/layouts/service-location/service-location.vue b/src/layouts/service-location/service-location.vue index 64a8c0d3e..d1e818130 100644 --- a/src/layouts/service-location/service-location.vue +++ b/src/layouts/service-location/service-location.vue @@ -441,7 +441,7 @@ export default { // 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].sellingPrice = this.mobileFeePart.sellingPrice; supportingItems[mobileFeeIndex].kitPrice = this.mobileFeePart.kitPrice; } else { supportingItems.push(this.mobileFeePart);