Display amounts with currency-derived decimals (#3604)

This commit is contained in:
Martin Gross
2023-09-18 17:48:34 +02:00
committed by GitHub
parent fae45d066a
commit 36203d653b
3 changed files with 5 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
{% load i18n %}
{% load money %}
{% if payment_info %}
<dl class="dl-horizontal">
@@ -59,7 +60,7 @@
{% endif %}
{% if "amount" in payment_info %}
<dt>{% trans "Total value" %}</dt>
<dd>{{ payment_info.amount|floatformat:2 }}</dd>
<dd>{{ payment_info.amount|money_numberfield:event.currency }}</dd>
{% endif %}
{% if "currency" in payment_info %}
<dt>{% trans "Currency" %}</dt>