From c3a2143ffae0321b3dcd39da9f918e633faa8f10 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Thu, 5 Oct 2023 13:55:48 -0400 Subject: [PATCH] include mobile_insurance in mobile checks --- src/layouts/schedule-page/schedule-page.vue | 7 +++++-- src/store/index.js | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) 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,