fix issue

This commit is contained in:
Marshal
2026-08-22 00:49:53 +00:00
parent bad418d79e
commit b6c1efa043
22 changed files with 1448 additions and 88 deletions

View File

@@ -8821,6 +8821,13 @@ export class TrainSchedulingService {
allocatedWeightTons: roundTons(Number(allocation.allocatedWeightTons)),
loadType: allocation.loadType ?? null,
status: allocation.status,
// THIS load's own corridor, not the wagon's union span.
// A wagon reused across disjoint legs carries two loads
// with different yards; without these the leg board can
// only draw one merged bar and cannot say which load
// rides which leg.
originYardId: allocation.booking?.originYardId ?? null,
destinationYardId: allocation.booking?.destinationYardId ?? null,
containerItems: (containerItemsByAllocation.get(allocation.id) ?? []).map(
(item) => ({
id: item.id,