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) {