mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
Merge pull request #782 from Tria-plc/freight_feature/usermanagement
add lashing surcharge for cargo types with hasLashing flag
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user