This commit is contained in:
Laurie MONTANT 2024-10-09 16:06:17 +02:00
parent 37773416ff
commit 86335ba52d
2 changed files with 11 additions and 3 deletions

View File

@ -26,11 +26,13 @@
<#assign isCurrencyCode = JsonUtil.isCurrencyCode(dispute.dispute_amount_unit?upper_case) /> <#assign isCurrencyCode = JsonUtil.isCurrencyCode(dispute.dispute_amount_unit?upper_case) />
<#if isCurrencyCode> <#if isCurrencyCode>
"Currency" : "${dispute.dispute_amount_unit?upper_case?json_string}", "Currency" : "${dispute.dispute_amount_unit?upper_case?json_string}",
<#--<#elseif isCurrencyCode!> <#else>
"Currency" : "${TableAmount[dispute.dispute_amount_unit?json_string]}",--> <#if TableAmount[dispute.dispute_amount_unit?json_string]??>
"Currency" : "${TableAmount[dispute.dispute_amount_unit?json_string]}",
<#else> <#else>
"Currency" : "XXX", "Currency" : "XXX",
</#if> </#if>
</#if>
"Value": "${dispute.dispute_amount}" "Value": "${dispute.dispute_amount}"
}, },
<#if dispute.dispute_type_code=="050" > <#if dispute.dispute_type_code=="050" >

View File

@ -6,4 +6,10 @@
"4":"CLAIM_CRITICALITY_BLOCKING" "4":"CLAIM_CRITICALITY_BLOCKING"
}> }>
<#-- Table Amout -->
<#assign TableAmount = {
"$": "USD",
"£":"GBP",
"DH":"MAD"
}>