From 2ad20c39f7f00ab031b9a7224fad0b7d043a530e Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Wed, 18 Oct 2023 13:42:18 -0400 Subject: [PATCH 1/4] Fixed Seling Price misspelling and renamed EarlyBirdIndex to PremiumFeeIndex --- src/layouts/schedule/schedule.vue | 18 +++++++++--------- .../service-location/service-location.vue | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) 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); From b5dbb1aebf1a22ae13dbddce08b1b6d3ff09e5eb Mon Sep 17 00:00:00 2001 From: Bryan Mauger Date: Wed, 18 Oct 2023 16:20:11 -0400 Subject: [PATCH 2/4] CSR-1711 fix spacing issues. --- .../checkbox-question/checkbox-question.vue | 6 +++--- .../textbox-question/textbox-question.vue | 2 +- src/fmg-components/vehicle-banner/vehicle-banner.vue | 2 +- src/layouts/customer-details/customer-details.vue | 2 +- src/layouts/schedule/location-alerts/location-alerts.vue | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/digital-components/checkbox-question/checkbox-question.vue b/src/digital-components/checkbox-question/checkbox-question.vue index 50245d025..f117b0b57 100644 --- a/src/digital-components/checkbox-question/checkbox-question.vue +++ b/src/digital-components/checkbox-question/checkbox-question.vue @@ -1,16 +1,16 @@ diff --git a/src/layouts/customer-details/customer-details.vue b/src/layouts/customer-details/customer-details.vue index 6e5fc0f09..cd6cc17b0 100644 --- a/src/layouts/customer-details/customer-details.vue +++ b/src/layouts/customer-details/customer-details.vue @@ -8,7 +8,7 @@
- + From f4582c221c1c073fa52298a8983376f96176834b Mon Sep 17 00:00:00 2001 From: Bryan Mauger Date: Wed, 18 Oct 2023 16:32:32 -0400 Subject: [PATCH 3/4] Format code. --- .../checkbox-question/checkbox-question.vue | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/digital-components/checkbox-question/checkbox-question.vue b/src/digital-components/checkbox-question/checkbox-question.vue index f117b0b57..6d3777210 100644 --- a/src/digital-components/checkbox-question/checkbox-question.vue +++ b/src/digital-components/checkbox-question/checkbox-question.vue @@ -1,16 +1,18 @@