{% extends "accounting/_base.html" %} {% block page_title %}Écriture {{ txn.number|default:txn.pk }}{% endblock %} {% block accounting_content %}

{{ txn.description|default:txn.get_type_display }}

{{ txn.journal }} · {{ txn.date|date:"d/m/Y" }} · exercice {{ txn.fiscal_period.name }} {% if txn.reference %} · pièce {{ txn.reference }}{% endif %} {% if txn.document_type %} · {% if document_url %}{{ txn.document_type }} #{{ txn.document_id }}{% else %}{{ txn.document_type }} #{{ txn.document_id }}{% endif %}{% endif %}
{% if txn.is_validated %} {{ txn.number }}
Validée le {{ txn.validated_at|date:"d/m/Y H:i" }}{% if txn.validated_by %} par {{ txn.validated_by }}{% endif %}
{% if txn.seal %}
Empreinte n° {{ txn.seal_index }} : {{ txn.seal|truncatechars:20 }}
{% endif %} {% else %} Brouillon {% endif %}
{% if txn.reversal_of %}

Contre-passation de {{ txn.reversal_of.number }}.

{% endif %} {% for r in reversals %}

Annulée par {{ r.number }}.

{% endfor %}
{% csrf_token %}
{% if sections %}{% endif %} {% for e in entries %} {% if sections %}{% endif %} {% endfor %} {% if sections %}{% endif %}
CompteLibelléAuxiliaireDébitCréditLettrageSection
{{ e.account.code }} {{ e.account.name }} {{ e.label }}{% if e.vat_rate is not None %} (TVA {{ e.vat_rate|floatformat:"-4" }}){% endif %}{% if e.currency %} · {{ e.currency_amount|floatformat:"2g" }} {{ e.currency }}{% endif %} {{ e.auxiliary_label }} {% if e.debit %}{{ e.debit|floatformat:"2g" }}{% endif %} {% if e.credit %}{{ e.credit|floatformat:"2g" }}{% endif %} {% if e.reconciliation_ref %}{{ e.reconciliation_ref }} {{ e.reconciled_at|date:"d/m/Y" }}{% endif %}{% if e.account.pcg_class == "6" or e.account.pcg_class == "7" %}{% if perms.accounting.change_ledgerentry %} {% else %}{{ e.analytic.code|default:"" }}{% endif %}{% endif %}
Total{{ debit|floatformat:"2g" }}{{ credit|floatformat:"2g" }} {% if perms.accounting.change_ledgerentry %}{% endif %}
{% if debit != credit %}
Écriture déséquilibrée : elle ne peut pas être validée.
{% endif %} {% if sections %}

Ventilation analytique des charges et produits : modifiable à tout moment, sans toucher à l'écriture.

{% endif %}
{% if not txn.is_validated %} {% if perms.accounting.validate_transaction %}
{% csrf_token %}
{% endif %} {% if perms.accounting.change_transaction %}Modifier{% endif %} {% if perms.accounting.delete_transaction %}
{% csrf_token %}
{% endif %} {% elif perms.accounting.validate_transaction and not reversals %}
{% csrf_token %}
{% endif %}
{% endblock %}