{% extends "accounting/_base.html" %} {% block page_title %}{% if journal %}Journal {{ journal.code }}{% else %}Livre-journal{% endif %}{% endblock %} {% block accounting_content %}

{% if journal %}Journal {{ journal.code }} — {{ journal.label }}{% else %}Livre-journal (tous les journaux){% endif %}

Du {{ start|date:"d/m/Y" }} au {{ end|date:"d/m/Y" }} · {{ totals.entries }} écriture{{ totals.entries|pluralize }}
{% if journal and perms.accounting.change_journal %}Modifier{% endif %} {% if perms.accounting.export_data %} Excel CSV {% endif %} Imprimer / PDF
{% if not printing %}{% include "accounting/_period_filter.html" with show_validated=True %}{% endif %} {% if totals.drafts %}
{{ totals.drafts }} écriture{{ totals.drafts|pluralize }} en brouillon : cochez « Validées uniquement » pour l'édition définitive.
{% endif %}
{% if not journal %}{% endif %} {% for item in book %} {% for e in item.lines %} {% if not journal %}{% endif %} {% endfor %} {% empty %} {% endfor %}
DateJnlNuméroPièceCompteLibelléDébitCrédit
{% if forloop.first %}{{ item.txn.date|date:"d/m/Y" }}{% endif %}{% if forloop.first %}{{ item.txn.journal.code }}{% endif %}{% if forloop.first %}{{ item.txn.number|default:"brouillon" }}{% endif %} {% if forloop.first %}{{ item.txn.reference }}{% endif %} {{ e.account.code }}{% if e.auxiliary_code %} {{ e.auxiliary_code|truncatechars:24 }}{% endif %} {{ e.label|default:item.txn.description }} {% if e.debit %}{{ e.debit|floatformat:"2g" }}{% endif %} {% if e.credit %}{{ e.credit|floatformat:"2g" }}{% endif %}
Aucune écriture sur la période.
Total de la période {{ totals.debit|floatformat:"2g" }}{{ totals.credit|floatformat:"2g" }}
{% if page.has_other_pages %} {% endif %}
{% if printing %}{% endif %} {% endblock %}