feat: implement MANUAL_ONLY status for bookings and update related logic

This commit is contained in:
Marshal
2026-08-25 22:01:03 +00:00
parent b926a3116e
commit 29371b0b39
8 changed files with 257 additions and 36 deletions

View File

@@ -222,6 +222,13 @@ export enum SchedulingStatus {
Dispatched = "DISPATCHED",
/** Paid, but no wagon of the required type was free — held in the day pool for manual placement. */
WaitingForWagon = "WAITING_FOR_WAGON",
/**
* Staff removed this paid booking from a train (unchecked at dispatch, or
* unassigned from the schedule). Auto-allocation sweeps must skip it — it
* would silently retake the space it was pulled from. Only a manual staff
* assignment puts it back on a train (which resets it to SCHEDULED).
*/
ManualOnly = "MANUAL_ONLY",
}
export enum TrainScheduleStatus {