SCPN1-6642 SCPN1-6641
This commit is contained in:
parent
9cbacc0ebc
commit
06147dd8d4
@ -25,6 +25,7 @@
|
|||||||
<#include "RFXtoRP_HsrPrepa_HandlingunitGoodsPrepared.ftl">
|
<#include "RFXtoRP_HsrPrepa_HandlingunitGoodsPrepared.ftl">
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.HandlingunitDispatched>
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.HandlingunitDispatched>
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
"datas" :
|
"datas" :
|
||||||
@ -47,6 +48,7 @@
|
|||||||
}
|
}
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
|
<#assign refIDHmap ={}>
|
||||||
<#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) />
|
||||||
@ -76,6 +78,7 @@
|
|||||||
</#if>
|
</#if>
|
||||||
</#list>
|
</#list>
|
||||||
</#list>
|
</#list>
|
||||||
|
<#assign refIDHmap ={}>
|
||||||
]
|
]
|
||||||
<#else>
|
<#else>
|
||||||
<#stop "no confirmed quantity for the preparation - preparation closed">
|
<#stop "no confirmed quantity for the preparation - preparation closed">
|
||||||
|
|||||||
@ -1,26 +1,33 @@
|
|||||||
<#include "HfRpConfig.ftl">
|
<#include "HfRpConfig.ftl">
|
||||||
<#include "ReflexUtils.ftl">
|
<#include "ReflexUtils.ftl">
|
||||||
[
|
[
|
||||||
|
<#assign refIDHmap_local ={}>
|
||||||
<#list preparationOrder.preparation_line_lst?filter(l ->l.preparation_order_originator_reference!="") as preparation_line>
|
<#list preparationOrder.preparation_line_lst?filter(l ->l.preparation_order_originator_reference!="") as preparation_line>
|
||||||
<#assign OrderOriginReference = preparation_line.preparation_order_originator_reference?trim?json_string>
|
<#assign OrderOriginReference = preparation_line.preparation_order_originator_reference?trim?json_string>
|
||||||
{
|
<#if !refIDHmap_local[OrderOriginReference]?? >
|
||||||
"Header": {
|
<#if refIDHmap_local?size != 0 >
|
||||||
"ProjectID": "${projectRP}"
|
,
|
||||||
},
|
</#if>
|
||||||
"ID":{
|
<#assign refIDHmap_local +={OrderOriginReference,OrderOriginReference}>
|
||||||
"RefID": "${OrderOriginReference}"
|
{
|
||||||
},
|
"Header": {
|
||||||
"Payload":{
|
"ProjectID": "${projectRP}"
|
||||||
"Carrier": {
|
},
|
||||||
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
|
"ID":{
|
||||||
|
"RefID": "${OrderOriginReference}"
|
||||||
|
},
|
||||||
|
"Payload":{
|
||||||
|
"Carrier": {
|
||||||
|
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||||
|
}
|
||||||
|
<#-- Add transport grade code
|
||||||
|
<#if preparationOrder.transport_grade_code!="">
|
||||||
|
,
|
||||||
|
"CarrierService":"${preparationOrder.transport_grade_code?trim?json_string}"
|
||||||
|
</#if> -->
|
||||||
}
|
}
|
||||||
<#-- Add transport grade code
|
}
|
||||||
<#if preparationOrder.transport_grade_code!="">
|
</#if>
|
||||||
,
|
</#list>
|
||||||
"CarrierService":"${preparationOrder.transport_grade_code?trim?json_string}"
|
<#assign refIDHmap_local ={}>
|
||||||
</#if> -->
|
|
||||||
}
|
|
||||||
}
|
|
||||||
<#sep>,</#sep>
|
|
||||||
</#list>
|
|
||||||
]
|
]
|
||||||
@ -2,25 +2,28 @@
|
|||||||
<#include "ReflexUtils.ftl">
|
<#include "ReflexUtils.ftl">
|
||||||
[
|
[
|
||||||
<#assign dispatched3_datetime = RfxDateTimetoUTC(preparationOrder.stock_despatch_at_preparation_datetime,time_zone_offset_rfx) />
|
<#assign dispatched3_datetime = RfxDateTimetoUTC(preparationOrder.stock_despatch_at_preparation_datetime,time_zone_offset_rfx) />
|
||||||
<#assign generatedComa = false>
|
|
||||||
<#list preparationOrder.preparation_line_lst?filter(l ->l.despatched_ipg_list??) as preparation_line3>
|
<#list preparationOrder.preparation_line_lst?filter(l ->l.despatched_ipg_list??) as preparation_line3>
|
||||||
<#list preparation_line3.despatched_ipg_list?filter(j ->j.carton_number!="000000000000000000") as despatched_ipg3>
|
<#list preparation_line3.despatched_ipg_list?filter(j ->j.carton_number!="000000000000000000") as despatched_ipg3>
|
||||||
|
<#if !refIDHmap[despatched_ipg3.carton_number]?? >
|
||||||
<#if generatedComa >,</#if>
|
<#if refIDHmap?size != 0 >
|
||||||
{
|
,
|
||||||
"Header": {
|
</#if>
|
||||||
"ProjectID": "${projectRP}"
|
<#assign refIDHmap += {despatched_ipg3.carton_number,despatched_ipg3.carton_number}>
|
||||||
},
|
{
|
||||||
"ID": {
|
"Header": {
|
||||||
"RefID": "${despatched_ipg3.carton_number}",
|
"ProjectID": "${projectRP}"
|
||||||
"RefDate": {
|
},
|
||||||
"DateTime": "${dispatched3_datetime}",
|
"ID": {
|
||||||
"AuthorTimeZone": "${time_zone_rfx}"
|
"RefID": "${despatched_ipg3.carton_number}",
|
||||||
}
|
"RefDate": {
|
||||||
},
|
"DateTime": "${dispatched3_datetime}",
|
||||||
"Payload": { }
|
"AuthorTimeZone": "${time_zone_rfx}"
|
||||||
}
|
}
|
||||||
<#assign generatedComa = true>
|
},
|
||||||
|
"Payload": { }
|
||||||
|
}
|
||||||
|
</#if>
|
||||||
</#list>
|
</#list>
|
||||||
</#list>
|
</#list>
|
||||||
]
|
]
|
||||||
|
|||||||
@ -2,22 +2,27 @@
|
|||||||
<#include "ReflexUtils.ftl">
|
<#include "ReflexUtils.ftl">
|
||||||
[
|
[
|
||||||
<#assign dispatched_datetime = RfxDateTimetoUTC(preparationOrder.stock_despatch_at_preparation_datetime,time_zone_offset_rfx) />
|
<#assign dispatched_datetime = RfxDateTimetoUTC(preparationOrder.stock_despatch_at_preparation_datetime,time_zone_offset_rfx) />
|
||||||
|
<#assign refIDHmap_local ={}>
|
||||||
<#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>
|
||||||
{
|
<#if !refIDHmap_local[despatched_ipg.hd_number]?? >
|
||||||
"Header": {
|
<#if refIDHmap_local?size != 0 >
|
||||||
"ProjectID": "${projectRP}"
|
,
|
||||||
},
|
</#if>
|
||||||
"ID": {
|
<#assign refIDHmap_local +={despatched_ipg.hd_number,despatched_ipg.hd_number}>
|
||||||
"RefID": "${despatched_ipg.hd_number}",
|
{
|
||||||
"RefDate": {
|
"Header": {"ProjectID": "${projectRP}"},
|
||||||
"DateTime": "${dispatched_datetime}",
|
"ID": {
|
||||||
"AuthorTimeZone": "${time_zone_rfx}"
|
"RefID": "${despatched_ipg.hd_number}",
|
||||||
}
|
"RefDate": {
|
||||||
},
|
"DateTime": "${dispatched_datetime}",
|
||||||
"Payload": { }
|
"AuthorTimeZone": "${time_zone_rfx}"
|
||||||
}<#sep>,</#sep>
|
}
|
||||||
</#list>
|
},
|
||||||
<#sep>,</#sep>
|
"Payload": { }
|
||||||
|
}
|
||||||
|
</#if>
|
||||||
|
</#list>
|
||||||
</#list>
|
</#list>
|
||||||
|
<#assign refIDHmap_local ={}>
|
||||||
]
|
]
|
||||||
|
|||||||
@ -1,21 +1,28 @@
|
|||||||
<#include "HfRpConfig.ftl">
|
<#include "HfRpConfig.ftl">
|
||||||
<#include "ReflexUtils.ftl">
|
<#include "ReflexUtils.ftl">
|
||||||
[
|
[
|
||||||
|
<#assign refIDHmap_local ={}>
|
||||||
<#list preparationOrder.preparation_line_lst?filter(l ->l.preparation_order_originator_reference!="") as preparation_line>
|
<#list preparationOrder.preparation_line_lst?filter(l ->l.preparation_order_originator_reference!="") as preparation_line>
|
||||||
<#assign OrderOriginReference = preparation_line.preparation_order_originator_reference?trim?json_string>
|
<#assign OrderOriginReference = preparation_line.preparation_order_originator_reference?trim?json_string>
|
||||||
{
|
<#if !refIDHmap_local[OrderOriginReference]?? >
|
||||||
"Header": {
|
<#if refIDHmap_local?size != 0 >
|
||||||
"ProjectID": "${projectRP}"
|
,
|
||||||
},
|
</#if>
|
||||||
"ID":{
|
<#assign refIDHmap_local +={OrderOriginReference,OrderOriginReference}>
|
||||||
"RefID": "${OrderOriginReference}"
|
{
|
||||||
},
|
"Header": {
|
||||||
"Payload":{
|
"ProjectID": "${projectRP}"
|
||||||
"Carrier": {
|
},
|
||||||
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
|
"ID":{
|
||||||
|
"RefID": "${OrderOriginReference}"
|
||||||
|
},
|
||||||
|
"Payload":{
|
||||||
|
"Carrier": {
|
||||||
|
"ActorID":"${preparationOrder.load_data.carrier_code?trim?json_string}"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
</#if>
|
||||||
<#sep>,</#sep>
|
</#list>
|
||||||
</#list>
|
<#assign refIDHmap_local ={}>
|
||||||
]
|
]
|
||||||
@ -51,13 +51,16 @@
|
|||||||
{
|
{
|
||||||
"ItemID": "${line.item_code?trim?json_string!"0"}",
|
"ItemID": "${line.item_code?trim?json_string!"0"}",
|
||||||
"LVBranchID": "${line.item_lv_code?json_string!"0"}",
|
"LVBranchID": "${line.item_lv_code?json_string!"0"}",
|
||||||
<#if line.line_without_detail??>
|
<#if (line.line_without_detail?? && line.line_without_detail.priority_date?length != 0) && (line.line_without_detail.priority_date?starts_with("00") == false)>
|
||||||
<#if (line.line_without_detail.priority_date?length != 0) && (line.line_without_detail.priority_date?starts_with("00") == false)>
|
|
||||||
<#assign line_without_detail_priority_date = line.line_without_detail.priority_date?datetime(rfx_date_format_default)?iso_utc />
|
<#assign line_without_detail_priority_date = line.line_without_detail.priority_date?datetime(rfx_date_format_default)?iso_utc />
|
||||||
"PriorityDate": "${line_without_detail_priority_date}",
|
"PriorityDate": "${line_without_detail_priority_date}",
|
||||||
</#if>
|
|
||||||
<#else>
|
<#else>
|
||||||
<#stop >
|
<#if (line.line_detail?? && line.line_detail.priority_date?length != 0) && (line.line_detail.priority_date?starts_with("00") == false)>
|
||||||
|
<#assign line_detail_priority_date = line.line_detail.priority_date?datetime(rfx_date_format_default)?iso_utc />
|
||||||
|
"PriorityDate": "${line_detail_priority_date}",
|
||||||
|
<#else>
|
||||||
|
"PriorityDate": "1970-01-01T00:00:00Z",
|
||||||
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
<#-- Segmentation Keys inclusion -->
|
<#-- Segmentation Keys inclusion -->
|
||||||
<#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected_SegmentationKeys.ftl">
|
<#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected_SegmentationKeys.ftl">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user