diff --git a/RFX_PartnerAPP_Settings.ftl b/RFX_PartnerAPP_Settings.ftl index 6e5411d..719e2ca 100644 --- a/RFX_PartnerAPP_Settings.ftl +++ b/RFX_PartnerAPP_Settings.ftl @@ -1 +1,2 @@ +<#-- To configure the tracking setting carrier --> <#assign trackingNumberSource = 3> diff --git a/RFXtoRP_HsaDispute.ftl b/RFXtoRP_HsaDispute.ftl index 8bc9f6e..e8c4dca 100644 --- a/RFXtoRP_HsaDispute.ftl +++ b/RFXtoRP_HsaDispute.ftl @@ -2,13 +2,11 @@ <#-- input : message RFX --> <#-- project : projectId in ReflexPlatform --> <#-- organisation : organisationtId in ReflexPlatform --> - +<#-- For dispute creation WMS to Platform --> <#assign cloudEventMsg = JsonUtil.jsonToMap(input)> <#assign projectRP = project> <#assign organisationRP = organisation> - <#assign aDateTime = .now> - <#switch cloudEventMsg.action> <#case "C"> <#case "U"> @@ -17,6 +15,7 @@ <#assign dispute = JsonUtil.jsonToMap(dataRfx)> [ <#if dispute.dispute_closed == true > + <#-- Only for preparation and receipt disputes --> <#if ((dispute.dispute_type_code=="030" || dispute.dispute_type_code=="070") && dispute.dispute_reception?? && dispute.dispute_reception.reception_reference!="") || (dispute.dispute_type_code=="050" && dispute.dispute_preparation.preparation_order_list?? && dispute.dispute_preparation.preparation_order_list[0].preparation_order_contractor_reference?trim?json_string!="")> { <#assign apiReflexPlatformID = ApiReflexPlatformID.ClaimCreated> @@ -24,9 +23,11 @@ "datas" : <#include "RFXtoRP_HsaDispute_Created.ftl"> } + <#-- Create the table for reason code in RFXtoRP_HsaDispute_TableReasonCodeToClaimTypeID.ftl --> <#if TableReasonCode[dispute.dispute_reason_code]??> , { + <#-- Add message in dispute tchat room --> <#assign apiReflexPlatformID = ApiReflexPlatformID.ClaimMessageSent> "apiReflexPlatformID" : "${apiReflexPlatformID}", "datas" : diff --git a/RFXtoRP_HsaDispute_MessageSent.ftl b/RFXtoRP_HsaDispute_MessageSent.ftl index 6b59ba0..ece9c2b 100644 --- a/RFXtoRP_HsaDispute_MessageSent.ftl +++ b/RFXtoRP_HsaDispute_MessageSent.ftl @@ -2,6 +2,7 @@ <#include "ReflexUtils.ftl"> [ { + <#-- Add refer --> "Header": { "ProjectID": "${projectRP}" },