From 9a68f87f1e52a222fc864b790707575a61c53ad9 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Fri, 15 Nov 2024 11:56:38 -0500 Subject: [PATCH] CSR-2348: update logic to allow for overnight drop off --- src/layouts/confirmation/confirmation.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/layouts/confirmation/confirmation.vue b/src/layouts/confirmation/confirmation.vue index 5464388fe..7d435e5cd 100644 --- a/src/layouts/confirmation/confirmation.vue +++ b/src/layouts/confirmation/confirmation.vue @@ -332,11 +332,17 @@ export default { return `Between ${get12HourTimeMobileFormat( this.ScheduleStartTime )} - ${get12HourTimeMobileFormat(this.ScheduleEndTime)}`; - } else if (this.AppointmentType == AppointmentTypeStrings.DROP_OFF) { - return `Drop off before 9:30 AM`; - } else { - return `at ${get12HourTimeFormat(this.ScheduleStartTime)}`; } + if (this.AppointmentType == AppointmentTypeStrings.DROP_OFF) { + if ( + this.submittedOrder?.schedule?.routeCode.includes(RouteCodeFlags.OVERNIGHT_DROP_OFF) + ) { + return `Drop off before 5:30 PM`; + } else { + return `Drop off before 9:30 AM`; + } + } + return `at ${get12HourTimeFormat(this.ScheduleStartTime)}`; }, vehicleBannerImageUrl() { return this.submittedOrder?.vehicle.imageUrl;