From cfdaf13e79d9b29db1d3d734b418d07df0ddab97 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Fri, 14 Apr 2017 18:09:33 +0200 Subject: [PATCH] Improve number formatting --- refunding/templates/refunding/elements_list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/refunding/templates/refunding/elements_list.html b/refunding/templates/refunding/elements_list.html index 2e251b9..500524d 100644 --- a/refunding/templates/refunding/elements_list.html +++ b/refunding/templates/refunding/elements_list.html @@ -1,7 +1,7 @@ {% if elements %} {% if sum %}

- Total : {{ sum }}€ + Total : {{ sum|floatformat:-2 }}€

{% endif %}
@@ -13,7 +13,7 @@ {% else %}
{% 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 %} {% else %}