Modifs 2012231044

This commit is contained in:
Laurie MONTANT 2023-12-20 10:44:03 +01:00
parent cb1793bf22
commit e319d273bb
2 changed files with 52 additions and 2 deletions

View File

@ -47,6 +47,7 @@
</#if>
<#list preparationOrder.preparation_line_lst?filter(l ->l.despatched_ipg_list??) as preparation_line>
<#list preparation_line.despatched_ipg_list as despatched_ipg>
{
@ -54,8 +55,23 @@
"apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" :
<#include "RFXtoRP_HsrPrepa_TrackingHuLabelled.ftl">
}
},
<#if despatched_ipg.carton_number != "000000000000000000" && despatched_ipg.carton_number!=despatched_ipg.hd_number >
{
<#assign includeHU = []>
<#list preparation_line.despatched_ipg_list as despatched_ipg2>
<#if despatched_ipg.hd_number == despatched_ipg2.hd_number >
<#assign includeHU += ["despatched_ipg2.carton_number"]
</#if>
</#list>
<#assign apiReflexPlatformID = ApiReflexPlatformID.HandlingunitHUsAdded>
"apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" :
<#include "RFXtoRP_HsrPrepa_HandlingunitHUsAdded.ftl">
}
</#if>
</#list>
</#list>

View File

@ -0,0 +1,34 @@
<#include "HfRpConfig.ftl">
<#include "ReflexUtils.ftl">
[
{
"Header": {
"ProjectID": "${projectRP}"
},
"ID": {
"RefID": "${despatched_ipg.hd_number}"
},
"Payload": {
"IncludedHandlingunitIDs": ${includeHU},
"Information": {
"ContainerType": "${preparation_line.despached_hds-list[0].hd_type_code}",
"Length": {
"Unit": "${length_unit_rfx}",
"Value": ${preparation_line.despached_hds-list[0].hd_type_depth}
},
"Weight": {
"Unit": "${weight_unit_rfx}",
"Value": ${preparation_line.despached_hds-list[0].hd_type_weight}
},
"Width": {
"Unit": "${length_unit_rfx}",
"Value": ${preparation_line.despached_hds-list[0].hd_type_width}
}
}
}
}
]