diff --git a/RFXtoRP_HsrPrepa_GoodsPrepared.ftl b/RFXtoRP_HsrPrepa_GoodsPrepared.ftl index a36f363..29dd15a 100644 --- a/RFXtoRP_HsrPrepa_GoodsPrepared.ftl +++ b/RFXtoRP_HsrPrepa_GoodsPrepared.ftl @@ -19,11 +19,26 @@ "Information" :{ <#if despatched_ipg.carton_number != "000000000000000000"> "ContainerType": "${despatched_ipg.carton_type_code}" + <#if preparation_line.despatched_cartons_list?? > + , + "Length": { + "Unit": "${length_unit_rfx}", + "Value": "${preparation_line.despatched_cartons_list.overall_depth}" + }, + "Weight": { + "Unit": "${weight_unit_rfx}", + "Value": "${preparation_line.despatched_cartons_list.carton_gross_weight}" + }, + "Width": { + "Unit": "${length_unit_rfx}", + "Value": "${preparation_line.despatched_cartons_list.overall_width}" + } + <#else> "ContainerType": "${despatched_ipg.hd_type_code}" - - }, + }, + <#-- HU Metadata inclusin inclusion --> <#include "RFXtoRP_HsrPrepa_GoodsPrepared_HandlingUnitMetadata.ftl"> , @@ -77,7 +92,8 @@ "Quantity": { "LVID": "${quantity_in_base_lv_RP_Cst}", "Value": ${despatched_ipg.quantity_lvs} - } + } + } ] }