You've already forked reflex-wms-connector
SCPN1-10996
(cherry picked from commit 948232af5130a66a30d0b8392870623f7886f847)
This commit is contained in:
@@ -16,13 +16,16 @@
|
|||||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||||
<#assign AncReceipt = JsonUtil.jsonToMap(dataRfx)>
|
<#assign AncReceipt = JsonUtil.jsonToMap(dataRfx)>
|
||||||
[
|
[
|
||||||
<#if AncReceipt.line_list?? && AncReceipt.line_list[0]??>
|
<#assign now = .now?string("yyyy-MM-dd'T'HH:mm:ss'Z'") />
|
||||||
|
<#if AncReceipt.line_list?? && AncReceipt.line_list[0]??>
|
||||||
{
|
{
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.OrderCreated>
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.OrderCreated>
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
"datas" :
|
"datas" :
|
||||||
<#include "RFXtoRP_HsrAntRec_Created.ftl">
|
<#include "RFXtoRP_HsrAntRec_Created.ftl">
|
||||||
},
|
},
|
||||||
|
<#assign nowPlus1s = (.now?long + 1000)?number_to_datetime />
|
||||||
|
<#assign now = nowPlus1s?string("yyyy-MM-dd'T'HH:mm:ss'Z'") />
|
||||||
{
|
{
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.OrderReceiptExpected>
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.OrderReceiptExpected>
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
<#assign receipt_datetime = RfxDateTimetoUTCWithTimezone(AncReceipt.planned_receipt_datetime,time_zone_rfx) />
|
<#assign receipt_datetime = RfxDateTimetoUTCWithTimezone(AncReceipt.planned_receipt_datetime,time_zone_rfx) />
|
||||||
<#assign now = .now?string("yyyy-MM-dd'T'HH:mm:ss'Z'") />
|
|
||||||
"Header": {
|
"Header": {
|
||||||
"ProjectID": "${projectRP}"
|
"ProjectID": "${projectRP}"
|
||||||
},
|
},
|
||||||
@@ -45,10 +44,14 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
<#if AncReceipt.anticipated_receipt_reference?? && AncReceipt.anticipated_receipt_reference!="">
|
<#if AncReceipt.anticipated_receipt_reference?? && AncReceipt.anticipated_receipt_reference!="">
|
||||||
"RefID": "${AncReceipt.anticipated_receipt_reference?json_string}"
|
"RefID": "${AncReceipt.anticipated_receipt_reference?json_string}",
|
||||||
<#else>
|
<#else>
|
||||||
"RefID": "AR-${AncReceipt.physical_depot_code?trim?json_string}${AncReceipt.activity_code?trim?json_string}${AncReceipt.originator_code?trim?json_string}${AncReceipt.anticipated_receipt_year?json_string}${AncReceipt.anticipated_receipt_number?json_string}"
|
"RefID": "AR-${AncReceipt.physical_depot_code?trim?json_string}${AncReceipt.activity_code?trim?json_string}${AncReceipt.originator_code?trim?json_string}${AncReceipt.anticipated_receipt_year?json_string}${AncReceipt.anticipated_receipt_number?json_string}",
|
||||||
</#if>
|
</#if>
|
||||||
|
"RefDate": {
|
||||||
|
"DateTime": "${now}",
|
||||||
|
"AuthorTimeZone": "${time_zone_rfx}"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"Payload": {
|
"Payload": {
|
||||||
"ShipFrom": {
|
"ShipFrom": {
|
||||||
|
|||||||
Reference in New Issue
Block a user