This commit is contained in:
Marshal
2026-07-04 07:16:23 +00:00
parent 7058922987
commit 74118165c6
3 changed files with 9 additions and 2 deletions

View File

@@ -2049,7 +2049,9 @@ export class TrainSchedulingService {
await this.trainSchedulesRepository.updateStatus(
id,
TrainScheduleStatusEnum.Cancelled,
{},
// Retire the booking window so a canceled schedule never lingers as an
// "open window" in booking-window lists or the legacy batch fill.
{ bookingWindowStatus: 'CLOSED', windowPhase: 'DONE' },
manager,
);
if (schedule.trainSetId) {