diff --git a/src/layouts/service-location/helpers/service-location-helper/service-location-helper.js b/src/layouts/service-location/helpers/service-location-helper/service-location-helper.js index 22ea1a641..0622aead1 100644 --- a/src/layouts/service-location/helpers/service-location-helper/service-location-helper.js +++ b/src/layouts/service-location/helpers/service-location-helper/service-location-helper.js @@ -1,4 +1,5 @@ import { storeActions } from "@/constants/store-actions"; +import store from "@/store"; import baseMixin from "@/mixins/base-mixin.js"; export async function getPricedMobileFeePart( @@ -37,3 +38,18 @@ export async function getPricedMobileFeePart( return Promise.resolve(pricingResults[0]); } + +export async function resetMobileFeePart(serviceZipCode) { + const serviceType = store.getters.damage.isRepair ? "Repair" : "Replace"; + const parentAccountNumber = store.getters.payment.parentAccountNumber; + const billToAccountNumber = 1; + + getPricedMobileFeePart( + serviceZipCode, + serviceType, + parentAccountNumber, + billToAccountNumber + ).then((pricedMobileFeePart) => { + this.mobileFeePart = pricedMobileFeePart; + }); +} diff --git a/src/layouts/service-location/service-location.vue b/src/layouts/service-location/service-location.vue index c4944f3ee..3872ab68a 100644 --- a/src/layouts/service-location/service-location.vue +++ b/src/layouts/service-location/service-location.vue @@ -37,7 +37,10 @@ import { Form } from "vee-validate"; import { fetchCmsContentForPage } from "@/helpers/cms-content-helper"; import { settleAllPromises } from "@/helpers/layout-helper"; import { navigateToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper"; -import { getPricedMobileFeePart } from "@/layouts/service-location/helpers/service-location-helper/service-location-helper"; +import { + getPricedMobileFeePart, + resetMobileFeePart, +} from "@/layouts/service-location/helpers/service-location-helper/service-location-helper"; import store from "@/store"; export default { @@ -62,7 +65,7 @@ export default { const serviceZipCode = store.getters.order.serviceLocation.zipCode; const serviceType = store.getters.damage.isRepair ? "Repair" : "Replace"; const parentAccountNumber = store.getters.payment.parentAccountNumber; - const billToAccountNumber = 0; + const billToAccountNumber = 1; const mobileFeePartPromise = getPricedMobileFeePart( serviceZipCode, @@ -157,20 +160,6 @@ export default { getServiceZipCodeFromStore() { return store.getters.order.serviceLocation.zipCode; }, - resetMobileFeePart(serviceZipCode) { - const serviceType = store.getters.damage.isRepair ? "Repair" : "Replace"; - const parentAccountNumber = store.getters.payment.parentAccountNumber; - const billToAccountNumber = 0; - - getPricedMobileFeePart( - serviceZipCode, - serviceType, - parentAccountNumber, - billToAccountNumber - ).then((pricedMobileFeePart) => { - this.mobileFeePart = pricedMobileFeePart; - }); - }, resetMobileLocation(updatedServiceZipCodeInfo) { this.streetAddress = ""; this.apartmentNumberOrBusinessName = "";