mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 02:58:11 +00:00
Leg-slot wagons planned to couple at a LATER stop were being counted into the Wagons/Allocations/Total containers tiles on the ORIGIN marshalling document (Import Load List, export load list) — inflating the departing count from 54 to 64 on a real train, plus a 'TO BE LOADED AT X' / 'TO LOAD AT X' row and a separate 'To load en route' tally to work around it. Filters those slots out of buildImportLoadListHtml / buildExportLoadListHtml entirely instead: a wagon not part of the departing consist gets no row and no count on this document, full stop. Its own coupling shows up on THAT stop's own numbered marshalling document once it actually happens (intercityOnBoardView already filtered correctly there, unaffected). Deletes the now-dead pendingBoardYardLabelBySlot special- casing, loadsHere guards, and the 'to load en route' tile. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>