Modifs hsrprepa dimension 1501241759

This commit is contained in:
Laurie MONTANT 2024-01-15 17:59:50 +01:00
parent 4eb68902bf
commit 736054e237

View File

@ -20,19 +20,21 @@
<#if despatched_ipg.carton_number != "000000000000000000"> <#if despatched_ipg.carton_number != "000000000000000000">
"ContainerType": "${despatched_ipg.carton_type_code}" "ContainerType": "${despatched_ipg.carton_type_code}"
<#if preparation_line.despatched_cartons_list?? > <#if preparation_line.despatched_cartons_list?? >
<#list preparation_line.despatched_cartons_list?filter(l ->l.carton_number==despatched_ipg.carton_number) as dimension>
, ,
"Length": { "Length": {
"Unit": "${length_unit_rfx}", "Unit": "${length_unit_rfx}",
"Value": "${preparation_line.despatched_cartons_list.overall_depth}" "Value": "${dimension.overall_depth}"
}, },
"Weight": { "Weight": {
"Unit": "${weight_unit_rfx}", "Unit": "${weight_unit_rfx}",
"Value": "${preparation_line.despatched_cartons_list.carton_gross_weight}" "Value": "${dimension.carton_gross_weight}"
}, },
"Width": { "Width": {
"Unit": "${length_unit_rfx}", "Unit": "${length_unit_rfx}",
"Value": "${preparation_line.despatched_cartons_list.overall_width}" "Value": "${dimension.overall_width}"
} }
</#list>
</#if> </#if>
<#else> <#else>
"ContainerType": "${despatched_ipg.hd_type_code}" "ContainerType": "${despatched_ipg.hd_type_code}"