From 01d58746d851aa9d757a97f95a5b35b28f83f1c6 Mon Sep 17 00:00:00 2001 From: Laurie Montant Date: Thu, 12 Sep 2024 17:07:33 +0200 Subject: [PATCH] modifs --- RFXtoRP_HsaDispute_Created.ftl | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/RFXtoRP_HsaDispute_Created.ftl b/RFXtoRP_HsaDispute_Created.ftl index 55ea4d0..d54cafe 100644 --- a/RFXtoRP_HsaDispute_Created.ftl +++ b/RFXtoRP_HsaDispute_Created.ftl @@ -22,9 +22,14 @@ <#else> "Title":"", + "Criticality":"${TableCriticality[dispute.dispute_criticity]}", "Amount": { - <#-- "Currency": "${TableCurrency[dispute.dispute_amount_unit]}",--> - "Currency":"EUR", + <#assign isCurrencyCode = JsonUtil.isCurrencyCode(dispute.dispute_amount_unit?upper_case) /> + <#if isCurrencyCode> + "Currency" : "${dispute.dispute_amount_unit?upper_case?json_string}", + <#else> + "Currency" : "XXX", + "Value": "${dispute.dispute_amount}" }, <#if dispute.dispute_type_code=="050" > @@ -48,7 +53,4 @@ } } -] - - - +] \ No newline at end of file