add contract reference to bookings list and enhance search functionality

This commit is contained in:
Marshal
2026-07-05 16:41:11 +00:00
parent 3447394e32
commit 57a504867b
3 changed files with 46 additions and 3 deletions

View File

@@ -388,6 +388,8 @@ export interface IBooking extends BaseEntity {
customerId: string;
/** The contract this booking was created under (Path A / Path B). */
contractId?: string | null;
/** Human-readable reference of the parent contract, joined onto list rows. */
contractReference?: string | null;
trainId?: string | null;
status: BookingStatus;
/** ONE_TIME for normal bookings; GENERAL_CONTRACT for umbrella contracts. */