Merge pull request #2120 from Safelite/feature/CSR-2348
CSR-2348: update logic to allow for overnight drop off
This commit is contained in:
commit
34afbe0468
1 changed files with 10 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue