diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index 5e8e6abd9..efe3a9404 100644 --- a/src/layouts/schedule/schedule.vue +++ b/src/layouts/schedule/schedule.vue @@ -125,7 +125,8 @@ :zipCodeFromParent="zipCode" :isShopQuestionDisplayed="isShopQuestionDisplayed" @shop-selected="onShopSelected" - @updated-serviceability="setServiceabilityDetails" /> + @updated-serviceability="setServiceabilityDetails" + @updated-mobile-fee-part="setMobileFeePart" />
@@ -76,6 +77,9 @@ export default { setServiceabilityDetails(serviceabilityDetails) { this.$emit("updated-serviceability", serviceabilityDetails); }, + setMobileFeePart(mobileFeePart) { + this.$emit("updated-mobile-fee-part", mobileFeePart); + }, }, }; diff --git a/src/layouts/service-location/shop-question/shop-question-popup.vue b/src/layouts/service-location/shop-question/shop-question-popup.vue index 430c347e1..c66f4c79a 100644 --- a/src/layouts/service-location/shop-question/shop-question-popup.vue +++ b/src/layouts/service-location/shop-question/shop-question-popup.vue @@ -107,6 +107,7 @@ import { getServiceabilityDetails, getClosestApplicableShops, getShopProviderData, + getPricedMobileFeePart, } from "@/layouts/service-location/helpers/service-location-helper/service-location-helper"; defineRule("option-required", required(errorMessages.OPTION_REQUIRED)); @@ -338,6 +339,14 @@ export default { ); this.$emit("updated-serviceability", serviceabilityDetails.data); + + // retrieve mobile fee part + const mobileFeePart = await getPricedMobileFeePart( + this.zipCodeData.zipCode, + this.pageName + ); + + this.$emit("updated-mobile-fee-part", mobileFeePart); } this.closeModal();