From 86335ba52da087ca718c0167a7dd5b44552a7848 Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Wed, 9 Oct 2024 16:06:17 +0200 Subject: [PATCH] modifs --- RFXtoRP_HsaDispute_Created.ftl | 8 +++++--- Table.ftl | 6 ++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/RFXtoRP_HsaDispute_Created.ftl b/RFXtoRP_HsaDispute_Created.ftl index c0c9366..40f5c24 100644 --- a/RFXtoRP_HsaDispute_Created.ftl +++ b/RFXtoRP_HsaDispute_Created.ftl @@ -26,10 +26,12 @@ <#assign isCurrencyCode = JsonUtil.isCurrencyCode(dispute.dispute_amount_unit?upper_case) /> <#if isCurrencyCode> "Currency" : "${dispute.dispute_amount_unit?upper_case?json_string}", - <#--<#elseif isCurrencyCode!> - "Currency" : "${TableAmount[dispute.dispute_amount_unit?json_string]}",--> <#else> - "Currency" : "XXX", + <#if TableAmount[dispute.dispute_amount_unit?json_string]??> + "Currency" : "${TableAmount[dispute.dispute_amount_unit?json_string]}", + <#else> + "Currency" : "XXX", + "Value": "${dispute.dispute_amount}" }, diff --git a/Table.ftl b/Table.ftl index b61f611..7f2d545 100644 --- a/Table.ftl +++ b/Table.ftl @@ -6,4 +6,10 @@ "4":"CLAIM_CRITICALITY_BLOCKING" }> + <#-- Table Amout --> +<#assign TableAmount = { + "$": "USD", + "£":"GBP", + "DH":"MAD" + }>