{% load eo_facture %}
<div class="module" id="finances">
<h2>Finance</h2>
<p>Solde: {{ solde|amountformat }} €</p>
<table class="table">
    <thead><th class="mois">Mois</th><th class="montant">Encaissements</th><th>Dépenses</th><th>Solde</th></thead>
<tbody>
{% for periode in finances %}
<tr>
    <td class="mois"><a href="{{ periode.lien_date }}">{{ periode.date|date:"M Y" }}<a/></td>
    <td class="montant"><a href="{{ periode.lien_encaissement }}">{{periode.encaissement|amountformat}} €</a></td>
    <td class="montant"><a href="{{ periode.lien_depense }}">{{periode.depense|amountformat}} €</a></td>
    <td class="montant">{{periode.solde|amountformat}} €</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
