use currency format everywhere

This should unify the number formats, along with #618
This commit is contained in:
Adrien CLERC 2020-05-10 22:32:45 +02:00
parent 570a19c4d2
commit a374ae2bce
2 changed files with 4 additions and 4 deletions

View file

@ -25,7 +25,7 @@
<tr receiver={{bill.receiver.id}}>
<td>{{ bill.ower }}</td>
<td>{{ bill.receiver }}</td>
<td>{{ "%0.2f"|format(bill.amount) }}</td>
<td>{{ bill.amount|currencyformat_nc(g.project.default_currency) }}</td>
</tr>
{% endfor %}
</tbody>

View file

@ -30,8 +30,8 @@
{% for stat in members_stats|sort(attribute='member.name') %}
<tr>
<td class="d-md-none">{{ stat.member.name }}</td>
<td>{{ "%0.2f"|format(stat.paid) }}</td>
<td>{{ "%0.2f"|format(stat.spent) }}</td>
<td>{{ stat.paid|currencyformat_nc(g.project.default_currency) }}</td>
<td>{{ stat.spent|currencyformat_nc(g.project.default_currency) }}</td>
</tr>
{% endfor %}
</tbody>
@ -43,7 +43,7 @@
{% for month in months %}
<tr>
<td>{{ _(month.strftime("%B")) }} {{ month.year }}</td>
<td>{{ "%0.2f"|format(monthly_stats[month.year][month.month]) }}</td>
<td>{{ monthly_stats[month.year][month.month]|currencyformat_nc(g.project.default_currency) }}</td>
</tr>
{% endfor %}
</tbody>