modifs
This commit is contained in:
parent
134e44185a
commit
7c1b05d76e
@ -50,6 +50,7 @@
|
|||||||
|
|
||||||
<#assign refIDHmap ={}>
|
<#assign refIDHmap ={}>
|
||||||
<#assign hd_numberHmap ={}>
|
<#assign hd_numberHmap ={}>
|
||||||
|
<#assign hd_numberHmapHUadded ={}>
|
||||||
<#list preparationOrder.preparation_line_lst?filter(l ->l.despatched_ipg_list?? && l.preparation_order_originator_reference!="") as preparation_line>
|
<#list preparationOrder.preparation_line_lst?filter(l ->l.despatched_ipg_list?? && l.preparation_order_originator_reference!="") as preparation_line>
|
||||||
<#list preparation_line.despatched_ipg_list as despatched_ipg>
|
<#list preparation_line.despatched_ipg_list as despatched_ipg>
|
||||||
<#assign HUadded_packing_datetime = RfxDateTimetoUTC(preparation_line.confirmation_datetime,time_zone_offset_rfx) />
|
<#assign HUadded_packing_datetime = RfxDateTimetoUTC(preparation_line.confirmation_datetime,time_zone_offset_rfx) />
|
||||||
@ -77,6 +78,17 @@
|
|||||||
"datas" :
|
"datas" :
|
||||||
<#include "RFXtoRP_HsrPrepa_HUsAdded_HandlingUnitDispatched.ftl">
|
<#include "RFXtoRP_HsrPrepa_HUsAdded_HandlingUnitDispatched.ftl">
|
||||||
}
|
}
|
||||||
|
<#if !hd_numberHmapHUadded[despatched_ipg.hd_number]?? >
|
||||||
|
<#assign hd_numberHmapHUadded += {despatched_ipg.hd_number,despatched_ipg.hd_number}>
|
||||||
|
,
|
||||||
|
{
|
||||||
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.TrackingHULabeled>
|
||||||
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
|
"datas" :
|
||||||
|
<#include "RFXtoRP_HsrPrepa_TrackingHuLabelledHUsAdded.ftl">
|
||||||
|
}
|
||||||
|
</#if>
|
||||||
|
|
||||||
</#if>
|
</#if>
|
||||||
</#list>
|
</#list>
|
||||||
</#list>
|
</#list>
|
||||||
|
|||||||
36
RFXtoRP_HsrPrepa_TrackingHuLabelledHUsAdded.ftl
Normal file
36
RFXtoRP_HsrPrepa_TrackingHuLabelledHUsAdded.ftl
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<#include "HfRpConfig.ftl">
|
||||||
|
<#include "ReflexUtils.ftl">
|
||||||
|
<#include "ActorPrefix.ftl">
|
||||||
|
[
|
||||||
|
<#assign dispatched_datetime5 = RfxDateTimetoUTC(preparationOrder.stock_despatch_at_preparation_datetime,time_zone_offset_rfx) />
|
||||||
|
{
|
||||||
|
"Header": {
|
||||||
|
"ProjectID": "${projectRP}"
|
||||||
|
},
|
||||||
|
"ID": {
|
||||||
|
"RefID":"${despatched_ipg.hd_number}",
|
||||||
|
"RefDate": {
|
||||||
|
"DateTime": "${dispatched_datetime5}",
|
||||||
|
"AuthorTimeZone": "${time_zone_rfx}"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"Payload": {
|
||||||
|
<#if despatched_ipg.carton_number != "000000000000000000">
|
||||||
|
"HandlingunitID": "${despatched_ipg.carton_number}"
|
||||||
|
<#else>
|
||||||
|
"HandlingunitID": "${despatched_ipg.hd_number}"
|
||||||
|
</#if>
|
||||||
|
<#if preparationOrder.load_data?? && preparationOrder.load_data.carrier_code?? && preparationOrder.load_data.carrier_code!="" >
|
||||||
|
,
|
||||||
|
"HUCarrier":{
|
||||||
|
<#if uniqueness?? && uniqueness!="" >
|
||||||
|
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||||
|
<#else>
|
||||||
|
"ActorID":"${prefixcarrier}${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||||
|
</#if>
|
||||||
|
}
|
||||||
|
|
||||||
|
</#if>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
Loading…
x
Reference in New Issue
Block a user