From 42c479177ee8e6a773eb075eb59513ec0170375e Mon Sep 17 00:00:00 2001 From: Minojhini Valaiyapathi Date: Thu, 24 Jul 2025 08:24:24 -0400 Subject: [PATCH] CASH-1226 - Passed mobile provider number when appointment type is mobile --- src/layouts/schedule/schedule.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/layouts/schedule/schedule.vue b/src/layouts/schedule/schedule.vue index dad3515b3..3c37adde5 100644 --- a/src/layouts/schedule/schedule.vue +++ b/src/layouts/schedule/schedule.vue @@ -1601,10 +1601,20 @@ export default { if (newProvider) { this.selectedProvider = newProvider; this.initializeDatePicker(); + } else if (this.appointmentType === this.appointmentTypeStrings.MOBILE) { + this.selectedProvider = { + providerNumber: this.shopProviderData.mobileProviderNumber.toString(), + address: { + streetAddress: null, + city: null, + state: null, + zipCode: null, + zipCodeCtu: null, + }, + }; } else if ( - // use closest shopProvider if none exists !this.selectedProvider?.address?.streetAddress && - this.shopProviderData?.shopProviders + this.shopProviderData?.shopProviders?.length ) { this.selectedProvider = this.shopProviderData.shopProviders[0]; } @@ -1636,6 +1646,7 @@ export default { this.updateFooterButtonText(); if (newAppointmentType === AppointmentTypeStrings.MOBILE) { this.appointmentType = AppointmentTypeStrings.MOBILE; + this.updateSelectedProvider(); } else if (newAppointmentType) { if (this.selectedTimeSlotInfo?.timeSlot?.routeCode) { // update appointmentType based on routeCode to determine if it should be dropoff or inshop