add Group 9 delivery scenarios for self-haul and last-mile paths

- Implemented G9·S38 tests for customer self-haul truck assignments, ensuring compliance with container limits and truck assignments.
- Added G9·S39 tests for last-mile delivery, self-haul, and yard pickup, verifying independent paths for multiple bookings on the same train.
- Created seed data for Group 1 and Group 2 scenarios, ensuring proper setup for weight and capacity tests.
- Updated booking interface to deprecate  in favor of  for better clarity in allocations.
This commit is contained in:
Marshal
2026-08-01 12:14:37 +00:00
parent 3424dacd5f
commit 123f925cc1
32 changed files with 6928 additions and 80 deletions

View File

@@ -586,7 +586,10 @@ export interface IBooking extends BaseEntity {
contractId?: string | null;
/** Human-readable reference of the parent contract, joined onto list rows. */
contractReference?: string | null;
/** @deprecated Fleet master data link — use trainScheduleId for the actual allocation. */
trainId?: string | null;
/** The train schedule this booking is allocated to, if any. FK to train_schedules. */
trainScheduleId?: string | null;
status: BookingStatus;
/**
* Operational status of the assigned train (DRAFT/SCHEDULED/DISPATCHED/