fix agent issues

This commit is contained in:
marshal
2026-09-08 13:57:20 +00:00
parent 7af3ded7d7
commit 52f604e738
4 changed files with 94 additions and 16 deletions

View File

@@ -220,6 +220,15 @@ export class GlOperationsService {
wagonAllocated,
departedAt: departedAt ? new Date(departedAt).toISOString() : null,
arrivedAt: arrivedAt ? new Date(arrivedAt).toISOString() : null,
// The train's own actuals, kept separate from the booking's journey
// above: a UI can say where the TRAIN is without implying this booking
// has been unloaded (which is what the clearance gates key on).
scheduleDepartedAt: schedule?.actualDepartureAt
? new Date(schedule.actualDepartureAt).toISOString()
: null,
scheduleArrivedAt: schedule?.actualArrivalAt
? new Date(schedule.actualArrivalAt).toISOString()
: null,
};
}