Modifs HSRPrepa 0502241451

This commit is contained in:
Laurie MONTANT 2024-02-05 14:51:55 +01:00
parent d334812615
commit 387721fd82

View File

@ -20,24 +20,38 @@
<#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> <#list preparation_line.despatched_cartons_list?filter(l ->l.carton_number==despatched_ipg.carton_number) as dimensionCarton>
, ,
"Length": { "Length": {
"Unit": "${length_unit_rfx}", "Unit": "${length_unit_rfx}",
"Value": "${dimension.overall_depth}" "Value": "${dimensionCarton.overall_depth}"
}, },
"Weight": { "Weight": {
"Unit": "${weight_unit_rfx}", "Unit": "${weight_unit_rfx}",
"Value": "${dimension.carton_gross_weight}" "Value": "${dimensionCarton.carton_gross_weight}"
}, },
"Width": { "Width": {
"Unit": "${length_unit_rfx}", "Unit": "${length_unit_rfx}",
"Value": "${dimension.overall_width}" "Value": "${dimensionCarton.overall_width}"
} }
</#list> </#list>
</#if> </#if>
<#else> <#else>
"ContainerType": "${despatched_ipg.hd_type_code}" "ContainerType": "${despatched_ipg.hd_type_code}",
<#list preparation_line.despatched_hds_list?filter(j ->j.handling_device_number==despatched_ipg.handling_device_number) as dimensionHU>
"Length": {
"Unit": "${length_unit_rfx}",
"Value": "${dimensionHU.hd_type_depth}"
},
"Weight": {
"Unit": "${weight_unit_rfx}",
"Value": "${dimensionHU.hd_gross_weight}"
},
"Width": {
"Unit": "${length_unit_rfx}",
"Value": "${dimensionHU.hd_type_width}"
}
</#list>
</#if> </#if>
}, },