diff --git a/src/layouts/schedule-page/schedule-page.vue b/src/layouts/schedule-page/schedule-page.vue index 379462ca..fd7ed442 100644 --- a/src/layouts/schedule-page/schedule-page.vue +++ b/src/layouts/schedule-page/schedule-page.vue @@ -130,7 +130,8 @@ const getAvailableDates = async ( apiEndDate = apiEndDateLimit; } - if (appointmentType === AppointmentTypeStrings.MOBILE) { + if (appointmentType === AppointmentTypeStrings.MOBILE + || appointmentType === AppointmentTypeStrings.MOBILE_INSURANCE) { storeActionConfig = { storeAction: GET_MOBILE_TIME_SLOTS, payload: { @@ -311,7 +312,8 @@ export default { const serviceLocationPreReqs = serviceLocation.zipCode && serviceLocation.zipCodeCtu && serviceLocation.appointmentType - && (serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE + && ((serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE + || serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE_INSURANCE) || serviceLocation.provider.providerNumber); const paymentInfo = useMainStore().payment.isInsurance !== null; const supportingItems = useMainStore().lineItems.supportingItems !== null; @@ -319,6 +321,7 @@ export default { useMainStore().order.damage.isRepair || (useMainStore().order.lineItems?.glassParts != null && useMainStore().order.lineItems.glassParts.length > 0); + return serviceLocationPreReqs && paymentInfo && supportingItems && damageInfo; }, setData(initialShopTimeSlotsResponse) { diff --git a/src/store/index.js b/src/store/index.js index f498548b..08985695 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -641,7 +641,7 @@ export const useMainStore = defineStore({ startDate, endDate, applicationName: applicationConfig.APPLICATION_NAME, - parentAccountNumber: this.payment.parentAccountNumber, + parentAccountNumber: 167132, // this.payment.parentAccountNumber, carId: vehicle.carId, lineItems, glassPieces,