Merge pull request #2120 from Safelite/feature/CSR-2348

CSR-2348: update logic to allow for overnight drop off
This commit is contained in:
AdamCaouetteSafelite 2024-11-15 13:24:16 -05:00 committed by GitHub
commit 34afbe0468
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -341,11 +341,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;