36 lines
1.8 KiB
HTML
36 lines
1.8 KiB
HTML
{% load eo_facture %}
|
|
{% if factures %}
|
|
<div class="module" id="impayees">
|
|
<h2>Impayées</h2>
|
|
<p>Montant total: {{ montant|amountformat }} € TTC ({{montant_ht|amountformat}} € HT) </p>
|
|
<table id="impayee">
|
|
<thead>
|
|
<th>Quoi?</th>
|
|
<th>Depuis...</th>
|
|
</thead>
|
|
<tbody>
|
|
{% for l in factures %}
|
|
{% with l.facture as facture %}
|
|
<tr class="facture{% if l.encaissements %} encaissement{% endif %}{% if l.vieille %} vieille{% endif %}"><td>
|
|
<div class="facture"><a href="{% url "admin:eo_facture_facture_change" facture.pk_or_code %}">{{ facture.code }} - {{facture.intitule}}<a/> pour {{ facture.solde|amountformat }} {{ facture.contrat.client.monnaie }} TTC à <a href="{% url "admin:eo_facture_client_change" facture.client.id %}">{{facture.client}}</a></div>
|
|
</td>
|
|
<td>{{facture.emission|ago}}</td>
|
|
</tr>
|
|
{% if l.encaissements %}
|
|
{% for encaissement in l.encaissements %}
|
|
<tr class="encaissements">
|
|
<td border="0">
|
|
<a href="{% url "admin:eo_banque_lignebanquepop_change" encaissement.id%}">{{ encaissement.libelle }} - {{ encaissement.reference }} - payé le {{ encaissement.date_valeur }}</a> de {{ encaissement.montant|amountformat }} €</td>
|
|
<td>
|
|
<a href="{% url "admin:eo_facture_payment_add" %}?facture={{ facture.id }}&ligne_banque_pop={{ encaissement.id }}&montant_affecte={{ encaissement.montant|stringformat:".2f" }}">Accepter</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endif %}
|