CSR-2348: update logic to allow for overnight drop off
This commit is contained in:
parent
4529b8eb12
commit
9a68f87f1e
1 changed files with 10 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue