Merge pull request #641 from Tria-plc/freight_feature/usermanagement

enhance booking and contract management features
This commit is contained in:
marshal
2026-07-13 09:44:36 +03:00
committed by GitHub
14 changed files with 1149 additions and 275 deletions

View File

@@ -497,6 +497,12 @@ export interface IBooking extends BaseEntity {
trainScheduleStatus?: TrainScheduleStatus | string | null;
/** ONE_TIME for normal bookings; GENERAL_CONTRACT for umbrella contracts. */
bookingType?: BookingType;
/**
* Denormalized kind of the parent contract (ONE_TIME | GENERAL). Drawdown
* bookings under a GENERAL contract keep bookingType = ONE_TIME, so this is
* the field UIs must read to label a booking "General".
*/
contractKind?: `${import("./contracts").ContractKind}` | null;
/** General contracts only: when ordering closes (null until active / for one-time). */
expiresAt?: string | null;
/** Null for general contracts at creation — the date is chosen per order. */