You've already forked reflex-wms-connector
SCPN1-10443
This commit is contained in:
@@ -60,32 +60,36 @@
|
|||||||
}
|
}
|
||||||
<#else>
|
<#else>
|
||||||
<#if receipt.receipt_confirmed == "true" >
|
<#if receipt.receipt_confirmed == "true" >
|
||||||
<#assign ID = "R${receipt.physical_depot_code?trim?json_string}${receipt.activity_code?trim?json_string}${receipt.originator_code?trim?json_string}${receipt.receipt_year}${receipt.receipt_number}"/>
|
<#if receipt.receipt_reference?? && receipt.receipt_reference!="">
|
||||||
<#assign payload = '{"Header": {"ProjectID": "${projectRP!""}"},"IDs": [{"RefID": ${ID}"}]}' />
|
<#assign ID = "${receipt.receipt_reference?trim?json_string}"/>
|
||||||
<#assign queryApiReflexPlatformID = QueryApiReflexPlatformID.ExecutionflowGetByIds>
|
<#else>
|
||||||
<#assign response = QueryApiReflexPlatformCall.call(queryApiReflexPlatformID,payload) />
|
<#assign ID = "${receipt.physical_depot_code?trim?json_string}${receipt.activity_code?trim?json_string}${receipt.originator_code?trim?json_string}${receipt.receipt_year}${receipt.receipt_number}"/>
|
||||||
<#assign executionflowRP = JsonUtil.jsonToMap(response)>
|
</#if>
|
||||||
<#if executionflowRP?? && executionflowRP.Objects?? && executionflowRP.Objects[0]?? && executionflowRP.Objects[0].ID.RefID?? >
|
<#assign payload = '{"Header": {"ProjectID": "${projectRP!""}"},"IDs": [{"RefID": ${ID}"}]}' />
|
||||||
{
|
<#assign queryApiReflexPlatformID = QueryApiReflexPlatformID.ExecutionflowGetByIds>
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowReceiptCompleted>
|
<#assign response = QueryApiReflexPlatformCall.call(queryApiReflexPlatformID,payload) />
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
<#assign executionflowRP = JsonUtil.jsonToMap(response)>
|
||||||
"datas" :
|
<#if executionflowRP?? && executionflowRP.Objects?? && executionflowRP.Objects[0]?? && executionflowRP.Objects[0].ID.RefID?? >
|
||||||
<#include "RFXtoRP_HsrReceiptList_ExecutionflowReceiptCompleted.ftl">
|
{
|
||||||
}
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowReceiptCompleted>
|
||||||
<#else>
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
{
|
"datas" :
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected>
|
<#include "RFXtoRP_HsrReceiptList_ExecutionflowReceiptCompleted.ftl">
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
}
|
||||||
"datas" :
|
<#else>
|
||||||
<#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected.ftl">
|
{
|
||||||
},
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowDetected>
|
||||||
{
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowReceiptExpected>
|
"datas" :
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
<#include "RFXtoRP_HsrReceiptList_ExecutionflowDetected.ftl">
|
||||||
"datas" :
|
},
|
||||||
<#include "RFXtoRP_HsrReceiptList_ReceiptExpected.ftl">
|
{
|
||||||
}
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.ExecutionflowReceiptExpected>
|
||||||
</#if>
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
|
"datas" :
|
||||||
|
<#include "RFXtoRP_HsrReceiptList_ReceiptExpected.ftl">
|
||||||
|
}
|
||||||
|
</#if>
|
||||||
<#else>
|
<#else>
|
||||||
<#if receipt.receipt_type == "030">
|
<#if receipt.receipt_type == "030">
|
||||||
<#stop "ignored message because receipt type = transfert">
|
<#stop "ignored message because receipt type = transfert">
|
||||||
|
|||||||
Reference in New Issue
Block a user