{% extends "layouts/base.html" %} {% load fm_tags %} {% block title %}{{ ecriture.reference }}{% endblock %} {% block breadcrumb %}
  • Comptabilité
  • Écritures
  • {{ ecriture.reference }}
  • {% endblock %} {% block content %} {{ ecriture.reference }}{{ ecriture.get_origine_display }} Pièce PDF {% if can_edit %}Modifier{% endif %} {% if can_validate %}
    {% csrf_token %}
    {% endif %} {% if can_reverse %}{% endif %}
    {% for l in lignes %}{% endfor %}
    CompteLibelléDébitCrédit
    {{ l.compte.numero }}
    {{ l.compte.intitule }}
    {{ l.libelle }} {% if l.debit %}{{ l.debit|xaf }}{% endif %} {% if l.credit %}{{ l.credit|xaf }}{% endif %}
    Totaux{{ ecriture.total|xaf }}{{ ecriture.total|xaf }}
    Numéro
    {{ ecriture.numero|default:"Attribué à la validation" }}
    Pièce justificative
    {{ ecriture.piece|default:"—" }}
    Exercice
    {{ ecriture.fiscal_year.year }} ({{ ecriture.fiscal_year.get_status_display|lower }})
    Saisie
    {{ ecriture.created_at|date:"d/m/Y H:i" }}{% if ecriture.created_by %} · {{ ecriture.created_by.get_full_name }}{% endif %}
    Validation
    {% if ecriture.validee_le %}{{ ecriture.validee_le|date:"d/m/Y H:i" }}{% if ecriture.validee_par %} · {{ ecriture.validee_par.get_full_name }}{% endif %}{% else %}—{% endif %}
    {% if source_url %}
    Opération d'origine
    Ouvrir dans les finances
    {% endif %} {% if ecriture.contrepassation_de %}
    Contre-passe
    {{ ecriture.contrepassation_de.reference }}
    {% endif %} {% for cp in contrepassations %}
    Contre-passée par
    {{ cp.reference }}
    {% endfor %}
    {% if can_edit %}
    {% csrf_token %}
    {% endif %}
    {% if can_reverse %}
    {% csrf_token %}

    Une écriture inverse (débits et crédits permutés) est créée au brouillard. Validez-la ensuite pour neutraliser {{ ecriture.numero }}.

    {% endif %} {% endblock %}