{% extends "base.html" %} {% block contenu %}

{{ _("Journal des écritures") }}

{{ _("Toutes les écritures. Celles en orange sont à classer : cliquez dessus pour choisir le compte.") }}

{% for c in liste_comptes %}
{% if prefixes %}{% endif %} {% if categorie %}{% endif %} {% if totaux and totaux.titre %}{% endif %} {% if compte or q or filtre or du or au or prefixes or categorie %}{{ _("Tout effacer") }}{% endif %} {{ _("Export CSV (pour la fiduciaire)") }} {{ _("Export Excel") }}
{% if nb_verif %}
{{ _("{0} écriture(s) à classer avant l'export.", (nb_verif)) }} {{ _("Les voir") }}
{% endif %} {% if totaux %}
{% if totaux.titre %}
{{ totaux.titre }} {% if du or au %} {{ _("· du {0} au {1}", (du|date_ch if du else '…'), (au|date_ch if au else '…')) }}{% endif %}
{{ _("{0} compte(s)", (totaux.comptes|length)) }}{% endif %} {% for n, nom in totaux.comptes %}{{ n }} {{ _(nom) }}{{ ', ' if not loop.last }}{% endfor %}{% if totaux.titre %}
{% endif %} {{ _h("{0} écriture(s) — au débit {1} · au crédit {2} · solde {3} {4}", (lignes|length), (totaux.debit|chf), (totaux.credit|chf), (totaux.solde|chf), (_('(débiteur)') if totaux.solde > 0 else (_('(créditeur)') if totaux.solde < 0 else ''))) }}
{% elif q %}
{{ _("{0} écriture(s) trouvée(s) pour « {1} ».", (lignes|length), (q)) }}
{% endif %}
{% for e in lignes %} {% else %} {% endfor %}
{{ _("Date") }}{{ _("Pièce") }}{{ _("Texte") }}{{ _("Débit") }}{{ _("Crédit") }} {{ _("Montant") }}{{ _("TVA") }}{{ _("Source") }}
{{ e.date|date_ch }} {{ e.piece }} {{ e.texte or _('(sans texte)') }} {% if e.fichier and paiements.get(e.fichier) %}
{{ _("💳 Payé : {0}", (paiements[e.fichier])) }}
{% endif %}
{{ e.debit }} {{ _(noms.get(e.debit, '')) }} {{ e.credit }} {{ _(noms.get(e.credit, '')) }} {{ e.montant|chf }} {% if e.taux %}{{ montant_tva(e.montant, e.taux)|chf }} {{ e.taux }}%{% endif %} {{ _('à classer') if e.a_verifier else libelle_source(e.source) }} {% if e.fichier %}📎{% endif %}
{{ _("Aucune écriture. Commencez par un achat, une facture PDF ou un relevé bancaire.") }}
{% endblock %}