modifs
This commit is contained in:
parent
50fb9b467f
commit
0a0121c020
@ -16,13 +16,16 @@
|
|||||||
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
<#assign dataRfx = JsonUtil.decodeBase64(cloudEventMsg.data) />
|
||||||
<#assign dispute = JsonUtil.jsonToMap(dataRfx)>
|
<#assign dispute = JsonUtil.jsonToMap(dataRfx)>
|
||||||
[
|
[
|
||||||
|
<#if dispute.dispute_closed == true >
|
||||||
{
|
{
|
||||||
<#assign apiReflexPlatformID = ApiReflexPlatformID.ClaimCreated>
|
<#assign apiReflexPlatformID = ApiReflexPlatformID.ClaimCreated>
|
||||||
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
"apiReflexPlatformID" : "${apiReflexPlatformID}",
|
||||||
"datas" :
|
"datas" :
|
||||||
<#include "RFXtoRP_HsaDispute_Created.ftl">
|
<#include "RFXtoRP_HsaDispute_Created.ftl">
|
||||||
}
|
}
|
||||||
|
<#else>
|
||||||
|
<#stop>
|
||||||
|
</#if>
|
||||||
]
|
]
|
||||||
<#break>
|
<#break>
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<#include "HfRpConfig.ftl">
|
<#include "HfRpConfig.ftl">
|
||||||
<#include "ReflexUtils.ftl">
|
<#include "ReflexUtils.ftl">
|
||||||
|
<#include "Table.ftl">
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"Header": {
|
"Header": {
|
||||||
@ -7,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"ID": {
|
"ID": {
|
||||||
<#if dispute.dispute_preparation??>
|
<#if dispute.dispute_preparation??>
|
||||||
"RefID": "${dispute.dispute_preparation.preparation_physical_depot_code?trim?json_string}${dispute.dispute_preparation.preparation_activity_code?trim?json_string}${dispute.dispute_preparation.preparation_order_list.preparation_order_contractor_code?trim?json_string}${dispute.dispute_year_number?trim?json_string}${dispute.dispute_number?trim?json_string}"
|
"RefID": "${dispute.dispute_preparation.preparation_physical_depot_code?trim?json_string}${dispute.dispute_preparation.preparation_activity_code?trim?json_string}${dispute.dispute_preparation.preparation_order_list[0].preparation_order_contractor_code?trim?json_string}${dispute.dispute_year_number?trim?json_string}${dispute.dispute_number?trim?json_string}"
|
||||||
<#else>
|
<#else>
|
||||||
<#if dispute.dispute_reception??>
|
<#if dispute.dispute_reception??>
|
||||||
"RefID": "${dispute.dispute_reception.reception_physical_depot_code?trim?json_string}${dispute.dispute_reception.reception_activity_code?trim?json_string}${dispute.dispute_reception.reception_contractor_code?trim?json_string}${dispute.dispute_year_number?trim?json_string}${dispute.dispute_number?trim?json_string}"
|
"RefID": "${dispute.dispute_reception.reception_physical_depot_code?trim?json_string}${dispute.dispute_reception.reception_activity_code?trim?json_string}${dispute.dispute_reception.reception_contractor_code?trim?json_string}${dispute.dispute_year_number?trim?json_string}${dispute.dispute_number?trim?json_string}"
|
||||||
@ -16,22 +17,35 @@
|
|||||||
},
|
},
|
||||||
"Payload": {
|
"Payload": {
|
||||||
|
|
||||||
<#-- Case of dispute on preparation -->
|
<#if dispute.dispute_reference?? && dispute.dispute_reference!="">
|
||||||
<#if dispute.dispute_type_code=="050" >
|
"Title":"${dispute.dispute_reference?trim?json_string}",
|
||||||
"EntityID":"${dispute.dispute_preparation.preparation_order_list.preparation_order_contractor_reference}",
|
<#else>
|
||||||
<#if dispute.dispute_reason_code == "001"> <#--Enter your Reflex Reason code and mappe it with Platform reason code-->
|
"Title":"",
|
||||||
"ClaimTypeID":"CLAIMTYPE_${projectRP}_ORDER_RETARDLIV"
|
|
||||||
</#if>
|
|
||||||
<#else>
|
|
||||||
<#-- Case of dispute on receipt -->
|
|
||||||
<#if dispute.dispute_type_code=="070" || dispute.dispute_type_code=="030" >
|
|
||||||
"EntityID":"${dispute.dispute_reception.reception_reference}",
|
|
||||||
<#if dispute.dispute_reason_code == "M1"> <#--Enter your Reflex Reason code and mappe it with Platform reason code-->
|
|
||||||
"ClaimTypeID":"CLAIMTYPE_${projectRP}_ORDER_RETARDLIV"
|
|
||||||
</#if>
|
|
||||||
</#if>
|
|
||||||
|
|
||||||
</#if>
|
</#if>
|
||||||
|
"Amount": {
|
||||||
|
<#-- "Currency": "${TableCurrency[dispute.dispute_amount_unit]}",-->
|
||||||
|
"Currency":"EUR",
|
||||||
|
"Value": "${dispute.dispute_amount}"
|
||||||
|
},
|
||||||
|
<#if dispute.dispute_type_code=="050" >
|
||||||
|
"EntityID":"${dispute.dispute_preparation.preparation_order_list[0].preparation_order_contractor_reference?trim?json_string}",
|
||||||
|
<#else>
|
||||||
|
<#if dispute.dispute_type_code=="070" || dispute.dispute_type_code=="030" >
|
||||||
|
"EntityID":"${dispute.dispute_reception.reception_reference?trim?json_string}",
|
||||||
|
<#else>
|
||||||
|
<#stop "Type not supported" >
|
||||||
|
</#if>
|
||||||
|
</#if>
|
||||||
|
<#-- To configure -->
|
||||||
|
<#include "RFXtoRP_HsaDispute_ReasonCode.ftl">
|
||||||
|
|
||||||
|
<#if TableReasonCode[dispute.dispute_reason_code]??>
|
||||||
|
"ClaimTypeID":"${TableReasonCode[dispute.dispute_reason_code]}"
|
||||||
|
<#else>
|
||||||
|
<#stop "Claim reason code not supported" >
|
||||||
|
</#if>
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
13
RFXtoRP_HsaDispute_ReasonCodeToClaimTypeID.ftl
Normal file
13
RFXtoRP_HsaDispute_ReasonCodeToClaimTypeID.ftl
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<#-- Specify table for reason code -->
|
||||||
|
<#-- <#assign TableReasonCode = {
|
||||||
|
"001":"CLAIMTYPE_${projectRP}_ORDER_Delay",
|
||||||
|
"M1":"CLAIMTYPE_${projectRP}_ORDER_casse",
|
||||||
|
"XXX":"CLAIMTYPE_${projectRP}_ACTOR_claimtype",
|
||||||
|
"XXX":"CLAIMTYPE_${projectRP}_HANDLINGUNIT_claimtype",
|
||||||
|
"XXX":"CLAIMTYPE_${projectRP}_MOVEMENT_claimtype"
|
||||||
|
}/>-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user