{% extends "layouts/base.html" %} {% load fm_tags %} {% block title %}Journaux{% endblock %} {% block content %} {% include "accounting/_exports.html" %} {% include "accounting/_nav.html" %}
{% include "accounting/_perimetre.html" with avec_periode=1 extra="accounting/_choix_journal.html" %} {% if page.object_list %}
{{ page.paginator.count }} écriture{{ page.paginator.count|pluralize }} Débit {{ total_debit|xaf }} · Crédit {{ total_credit|xaf }}{% if total_debit == total_credit %} Équilibré{% else %} Écart{% endif %}
{% for e in page %}{% for l in e.lignes.all %}{% endfor %}{% endfor %}
DateÉcritureCompteLibelléDébitCrédit
{% if forloop.first %}{{ e.date_piece|date:"d/m/Y" }}{% endif %} {% if forloop.first %}{{ e.journal.code }} · {{ e.reference }}{% if e.statut == "BROUILLARD" %} Brouillard{% endif %}{% endif %} {{ l.compte.numero }} {{ l.libelle }}{% if l.tiers %}
{{ l.tiers }}
{% endif %}
{% if l.debit %}{{ l.debit|xaf }}{% endif %} {% if l.credit %}{{ l.credit|xaf }}{% endif %}
{% else %}{% endif %}
{% endblock %}