diff --git a/RFXtoRP_HsrPrepa_HandlingunitHUsAdded.ftl b/RFXtoRP_HsrPrepa_HandlingunitHUsAdded.ftl index d0d5ded..e3fe773 100644 --- a/RFXtoRP_HsrPrepa_HandlingunitHUsAdded.ftl +++ b/RFXtoRP_HsrPrepa_HandlingunitHUsAdded.ftl @@ -12,8 +12,10 @@ "Payload": { -"IncludedHandlingunitIDs": [ <#list includeHU as hu> "${hu}"<#sep>,], +"IncludedHandlingunitIDs": [ <#list includeHU as hu> "${hu}"<#sep>,] "Information": { + <#if preparation_line.despatched_hds_list?? > + , "ContainerType": "${preparation_line.despatched_hds_list[0].hd_type_code}", "Length": { "Unit": "${length_unit_rfx}", @@ -27,6 +29,7 @@ "Unit": "${length_unit_rfx}", "Value": ${preparation_line.despatched_hds_list[0].hd_type_width} } + } }