You've already forked reflex-wms-connector
SCPN1-10882
This commit is contained in:
@@ -11,38 +11,43 @@
|
||||
|
||||
<#switch cloudEventMsg.action>
|
||||
<#case "C">
|
||||
<#-- *********************************************** Action = CREATE ******************** -->
|
||||
<#-- *********************************************** Action = CREATE ******************** -->
|
||||
|
||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||
<#assign ancReceiptLine = JsonUtil.jsonToMap(dataRfx)>
|
||||
[
|
||||
<#assign AncReceipt = JsonUtil.jsonToMap(dataRfx)>
|
||||
[
|
||||
<#if AncReceipt.line_list?? && AncReceipt.line_list[0]??>
|
||||
{
|
||||
<#stop "create anticipated receipt line">
|
||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.OrderLinesAdded>
|
||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||
"datas" :
|
||||
<#include "RFXtoRP_HliAntRecLr_OrderLinesAdded.ftl">
|
||||
},
|
||||
{
|
||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.OrderReceiptExpected>
|
||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||
"datas" :
|
||||
<#include "RFXtoRP_HsrAntRec_ReceiptExpected.ftl">
|
||||
}
|
||||
]
|
||||
<#break>
|
||||
<#else>
|
||||
<#stop>
|
||||
</#if>
|
||||
<#break>
|
||||
|
||||
<#case "U">
|
||||
<#-- *********************************************** Action = UPDATE ******************** -->
|
||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||
<#assign ancReceiptLine = JsonUtil.jsonToMap(dataRfx)>
|
||||
[
|
||||
{
|
||||
<#stop "update anticipated receipt line">
|
||||
}
|
||||
]
|
||||
<#break>
|
||||
|
||||
<#assign AncReceipt = JsonUtil.jsonToMap(dataRfx)>
|
||||
<#stop>
|
||||
<#break>
|
||||
<#case "D">
|
||||
<#-- *********************************************** Action = DELETE ******************** -->
|
||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||
<#assign ancReceiptLine = JsonUtil.jsonToMap(dataRfx)>
|
||||
[
|
||||
{
|
||||
<#stop "delete anticipated receipt line">
|
||||
}
|
||||
]
|
||||
<#break>
|
||||
|
||||
|
||||
<#-- *********************************************** Action = DELETE ******************** -->
|
||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||
<#assign AncReceipt = JsonUtil.jsonToMap(dataRfx)>
|
||||
<#stop>
|
||||
<#break>
|
||||
|
||||
<#default>
|
||||
<#stop >
|
||||
</#switch>
|
||||
|
||||
Reference in New Issue
Block a user