mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 15:18:11 +00:00
fix issue -> consolidation
This commit is contained in:
@@ -484,6 +484,13 @@ export class ShippingLineBookingCompletionService {
|
||||
returnQuantity: 0,
|
||||
vgmPerUnitTons: figures.vgmPerUnit,
|
||||
totalVgmTons: figures.totalVgm,
|
||||
// In-memory units so the probe prices the same per-container
|
||||
// overweight the persisted booking will: the limit applies to each
|
||||
// box, not to the line's pooled tonnage.
|
||||
units: (line.units ?? []).map((u, idx) => ({
|
||||
vgmTons: Number(u.vgmTons ?? 0),
|
||||
sortOrder: idx,
|
||||
})) as BookingContainer['units'],
|
||||
wagonsRequired: Math.ceil(
|
||||
line.quantity * wagonsPerUnitForSize(containerType.sizeFt),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user