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

add lashing surcharge for cargo types with hasLashing flag
This commit is contained in:
marshal
2026-07-18 02:27:50 +03:00
committed by GitHub
59 changed files with 1919 additions and 140 deletions

View File

@@ -949,6 +949,23 @@ export interface AvailableDaysResponse {
days: string[];
}
/**
* Advisory free-wagon count for a shipment day a customer is considering — a
* planning hint, never enforced (the batch engine and the export gate are the
* real authorities). `trainsForDay` is false when no departure carries the leg.
*
* - EXPORT: `fits` = a single open train that day can carry the WHOLE booking
* (export never splits); `freeWagons` = the largest single-train leftover.
* - IMPORT/DOMESTIC: `freeWagons` = TOTAL room across the day's trains for the
* booking's wagon type; `fits` = that total covers the booking. The batch may
* still split the booking or defer a remainder to a later window.
*/
export interface DayAvailabilityResponse {
fits: boolean;
freeWagons: number;
trainsForDay: boolean;
}
export interface BookableScheduleLocomotive {
id: string;
code: string;