From 0b78321e58773e50f5afe7faa330e5eeaada36b9 Mon Sep 17 00:00:00 2001 From: Jan Date: Sun, 14 Dec 2025 16:58:15 +0100 Subject: [PATCH] added container info to d2d transports --- .../src/components/layout/report/Report.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/frontend/src/components/layout/report/Report.vue b/src/frontend/src/components/layout/report/Report.vue index 1dc1e74..4ea9a50 100644 --- a/src/frontend/src/components/layout/report/Report.vue +++ b/src/frontend/src/components/layout/report/Report.vue @@ -317,7 +317,7 @@
Stacked layers
{{ - hasMainRun(destination.sections) ? destination.layer : '-' + hasMainRunOrD2D(destination.sections) ? destination.layer : '-' }}
@@ -325,7 +325,9 @@
Container unit count
- {{ hasMainRun(destination.sections) ? (destination.unit_count * report.premises.hu_unit_count) : '-' }} + {{ + hasMainRunOrD2D(destination.sections) ? (destination.unit_count * report.premises.hu_unit_count) : '-' + }}
@@ -333,14 +335,14 @@
Container type
- {{ hasMainRun(destination.sections) ? getContainerTypeName(destination.container_type) : '-' }} + {{ hasMainRunOrD2D(destination.sections) ? getContainerTypeName(destination.container_type) : '-' }}
Limiting factor
- {{ hasMainRun(destination.sections) ? destination.weight_exceeded ? 'Weight' : 'Volume' : '-' }} + {{ hasMainRunOrD2D(destination.sections) ? destination.weight_exceeded ? 'Weight' : 'Volume' : '-' }}
@@ -379,8 +381,8 @@ export default { } }, methods: { - hasMainRun(sections) { - return sections.some(section => section.transport_type === 'SEA' || section.transport_type === 'RAIL'); + hasMainRunOrD2D(sections) { + return sections.some(section => section.transport_type === 'SEA' || section.transport_type === 'RAIL' || section.rate_type === 'D2D'); }, shorten(text, length) { if (text !== null && text !== undefined && text.length > length) {