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 elements %}
{% if sum %} {% if sum %}
<p> <p>
Total : {{ sum }}€ Total : {{ sum|floatformat:-2 }}€
</p> </p>
{% endif %} {% endif %}
<div class="list-group"> <div class="list-group">
@ -13,7 +13,7 @@
{% else %} {% else %}
<div class="list-group-item"> <div class="list-group-item">
{% endif %} {% 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 %} {% if refunds or payments %}
</a> </a>
{% else %} {% else %}