Improve number formatting

This commit is contained in:
Gabriel Augendre 2017-04-14 18:09:33 +02:00
parent 8849f5d953
commit cfdaf13e79
No known key found for this signature in database
GPG key ID: F360212F958357D4

View file

@ -1,7 +1,7 @@
{% if elements %}
{% if sum %}
<p>
Total : {{ sum }}€
Total : {{ sum|floatformat:-2 }}€
</p>
{% endif %}
<div class="list-group">
@ -13,7 +13,7 @@
{% else %}
<div class="list-group-item">
{% endif %}
{{ e.title }} le {{ e.date|date:"SHORT_DATE_FORMAT" }} : {{ e.eur_value|floatformat:2 }}€
{{ e.title }} le {{ e.date|date:"SHORT_DATE_FORMAT" }} : {{ e.eur_value|floatformat:-2 }}€
{% if refunds or payments %}
</a>
{% else %}