29 lines
1.1 KiB
Java
29 lines
1.1 KiB
Java
<#include "HfRpConfig.ftl">
|
|
<#include "ReflexUtils.ftl">
|
|
[
|
|
<#assign dispatched_datetime = RfxDateTimetoUTCWithTimezone(preparationOrder.stock_despatch_at_preparation_datetime,time_zone_rfx) />
|
|
<#assign refIDHmap_local ={}>
|
|
<#list preparationOrder.preparation_line_lst?filter(l ->l.despatched_ipg_list?? && l ->l.despatched_ipg_list?size != 0 && l.preparation_order_originator_reference!="") as preparation_line>
|
|
<#list preparation_line.despatched_ipg_list as despatched_ipg>
|
|
<#if !refIDHmap_local[despatched_ipg.hd_number]?? >
|
|
<#if refIDHmap_local?size != 0 >
|
|
,
|
|
</#if>
|
|
<#assign refIDHmap_local +={despatched_ipg.hd_number,despatched_ipg.hd_number}>
|
|
{
|
|
"Header": {"ProjectID": "${projectRP}"},
|
|
"ID": {
|
|
"RefID": "${despatched_ipg.hd_number}",
|
|
"RefDate": {
|
|
"DateTime": "${dispatched_datetime}",
|
|
"AuthorTimeZone": "${time_zone_rfx}"
|
|
}
|
|
},
|
|
"Payload": { }
|
|
}
|
|
</#if>
|
|
</#list>
|
|
</#list>
|
|
<#assign refIDHmap_local ={}>
|
|
]
|