You've already forked reflex-wms-connector
SCPN1-10895
This commit is contained in:
@@ -39,13 +39,24 @@
|
|||||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||||
<#assign AncReceipt = JsonUtil.jsonToMap(dataRfx)>
|
<#assign AncReceipt = JsonUtil.jsonToMap(dataRfx)>
|
||||||
[
|
[
|
||||||
<#if AncReceipt.generated?? && AncReceipt.generated.total_level_1_quantity==0 && AncReceipt.generated.total_level_2_quantity==0 && AncReceipt.generated.total_level_3_quantity==0 && AncReceipt.anticipated_receipt_closed == "true" && AncReceipt.all_receipt_validated=="true">
|
<#if AncReceipt.generated?? && AncReceipt.generated.total_level_1_quantity==0 && AncReceipt.generated.total_level_2_quantity==0 && AncReceipt.generated.total_level_3_quantity==0 && AncReceipt.anticipated_receipt_closed == "true" >
|
||||||
{
|
{
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.OrderCancelled>
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.OrderCancelled>
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
"datas" :
|
"datas" :
|
||||||
<#include "RFXtoRP_HsrAntRec_Cancelled.ftl">
|
<#include "RFXtoRP_HsrAntRec_Cancelled.ftl">
|
||||||
}
|
}
|
||||||
|
<#else>
|
||||||
|
<#if AncReceipt.planned?? && AncReceipt.generated??
|
||||||
|
&& AncReceipt.planned.total_level_1_quantity==AncReceipt.generated.total_level_1_quantity
|
||||||
|
&& AncReceipt.planned.total_level_2_quantity==AncReceipt.generated.total_level_2_quantity
|
||||||
|
&& AncReceipt.planned.total_level_3_quantity==AncReceipt.generated.total_level_3_quantity>
|
||||||
|
{
|
||||||
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.OrderAppointmentBookingDisabled>
|
||||||
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
|
"datas" :
|
||||||
|
<#include "RFXtoRP_HsrAntRec_AppointmentBookingDisabled.ftl">
|
||||||
|
}
|
||||||
<#else>
|
<#else>
|
||||||
<#if AncReceipt.anticipated_receipt_closed == "true" && AncReceipt.all_receipt_validated=="true">
|
<#if AncReceipt.anticipated_receipt_closed == "true" && AncReceipt.all_receipt_validated=="true">
|
||||||
{
|
{
|
||||||
@@ -56,6 +67,7 @@
|
|||||||
}
|
}
|
||||||
</#if>
|
</#if>
|
||||||
</#if>
|
</#if>
|
||||||
|
</#if>
|
||||||
]
|
]
|
||||||
<#break>
|
<#break>
|
||||||
|
|
||||||
|
|||||||
25
RFXtoRP_HsrAntRec_AppointmentBookingDisabled.ftl
Normal file
25
RFXtoRP_HsrAntRec_AppointmentBookingDisabled.ftl
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<#include "HfRpConfig.ftl">
|
||||||
|
<#include "ReflexUtils.ftl">
|
||||||
|
<#--<#assign receipt_status_datetime = RfxDateTimetoUTCWithTimezone(receipt.creation_datetime,time_zone_rfx) /> -->
|
||||||
|
<#assign now = .now?string("yyyy-MM-dd'T'HH:mm:ss'Z'") />
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"Header": {
|
||||||
|
"ProjectID": "${projectRP}"
|
||||||
|
},
|
||||||
|
"ID": {
|
||||||
|
<#if AncReceipt.anticipated_receipt_reference?? && AncReceipt.anticipated_receipt_reference!="">
|
||||||
|
"RefID": "${AncReceipt.anticipated_receipt_reference?json_string}",
|
||||||
|
<#else>
|
||||||
|
"RefID": "AR-${AncReceipt.physical_depot_code?json_string}${AncReceipt.activity_code?json_string}${AncReceipt.originator_code?json_string}${AncReceipt.anticipated_receipt_year?json_string}${AncReceipt.anticipated_receipt_number?json_string}",
|
||||||
|
</#if>
|
||||||
|
"RefDate": {
|
||||||
|
"DateTime": "${now}",
|
||||||
|
"AuthorTimeZone": "${time_zone_rfx}"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"Payload": {}
|
||||||
|
|
||||||
|
}
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user