fix wagon cncellation

This commit is contained in:
Marshal
2026-08-07 06:31:25 +00:00
parent 750dfc0720
commit 3db14bc09a
7 changed files with 501 additions and 19 deletions

View File

@@ -37,12 +37,19 @@ export interface CancelledQuantities {
/** Container bookings: units cut per container size. */
bySize?: Record<string, number>;
/**
* Container bookings: the exact physical units cut, snapshotted at fee
* settlement. The rebook reconstructs the new booking from THESE — never
* Container bookings: the exact physical units cut. Snapshotted at request
* time when the customer picked specific wagons, otherwise at fee settlement
* (LIFO trim). The rebook reconstructs the new booking from THESE — never
* from a soft-deleted-row scan, which could pick up units dropped by an
* unrelated batch split on the same booking.
*/
units?: CancelledUnitSnapshot[];
/**
* Specific-wagon cancellation: the wagon_booking_allocation ids the customer
* picked in the Wagons tab. T2 releases exactly these (fallback to
* newest-first for any id that no longer exists, e.g. after a re-batch).
*/
allocationIds?: string[];
}
/**