SCPN1-10895

This commit is contained in:
2026-06-16 10:21:54 +02:00
parent 7849b4cf85
commit 0496e0879b
2 changed files with 43 additions and 6 deletions

View File

@@ -39,7 +39,7 @@
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
<#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>
"apiReflexPlatformID" : "${apiReflexPlatformID}",
@@ -47,13 +47,25 @@
<#include "RFXtoRP_HsrAntRec_Cancelled.ftl">
}
<#else>
<#if AncReceipt.anticipated_receipt_closed == "true" && AncReceipt.all_receipt_validated=="true">
{
<#assign apiReflexPlatformID = ApiReflexPlatformID.OrderReceiptCompleted>
<#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_ReceiptCompleted.ftl">
}
<#include "RFXtoRP_HsrAntRec_AppointmentBookingDisabled.ftl">
}
<#else>
<#if AncReceipt.anticipated_receipt_closed == "true" && AncReceipt.all_receipt_validated=="true">
{
<#assign apiReflexPlatformID = ApiReflexPlatformID.OrderReceiptCompleted>
"apiReflexPlatformID" : "${apiReflexPlatformID}",
"datas" :
<#include "RFXtoRP_HsrAntRec_ReceiptCompleted.ftl">
}
</#if>
</#if>
</#if>
]