{% extends "facturation/base.html" %} {% load url from future %} {% block appbar %}

{% if service_name == "CMPP" %} Facturation {{ invoicing.seq_id }} {% if invoicing.status == "open" %} ouverte et ayant débuté le {{ invoicing.start_date }} {% else %} {% if invoicing.status == "closed" %} fermée {% else %} validée {% endif %} couvrant la période du {{ invoicing.start_date }} au {{ invoicing.end_date }} {% endif %} {% else %} Décompte {{ invoicing.seq_id }} {% if invoicing.status == "validated" %} validé {% endif %} pour le trimestre allant du {{ invoicing.start_date }} au {{ invoicing.end_date }} {% endif %}

Retourner à la facturation {{ invoicing.seq_id }} {% if service_name == "CMPP" %} {% if b2_is_configured and invoicing.status == "validated" %} {% if b2 %} {% else %} {% endif %} {% endif %} {% endif %} {% endblock %} {% block content %}
{% if b2_is_configured %} {% if invoicing.status == "validated" %}

Télétransmission de la facturation {{invoicing.seq_id}}

{% if error_message %}

Erreur : {{ error_message }}

{% elif b2 %} {% for info in b2|dictsortreversed:"total" %}

{{ info.hc }} — {{ info.total|floatformat:2 }} €

{% if info.mail_date %} Transmis le {{ info.mail_date }} — Transmettre à nouveau {% else %} Fichier créé le {{ info.creation_date }} — Transmettre à la caisse {% endif %} {% if info.mail_log %} {% if "MAIL SENT" in info.mail_log %}
{% elif "SMTP ERROR" in info.mail_log%}
{% endif %}{{ info.mail_log }}
{% endif %} {% endfor %} {% else %}

Cette facturation est validée, mais les fichiers de transmission (format B2) ne sont pas encore générés. Cliquer sur le bouton pour les créer :

Une fois les fichiers créés, vous pourrez les télé-transmettre depuis cette page.

{% endif %} {% else %} Facturation non validée, transmission impossible. Retourner à la facturation {{ invoicing.seq_id }} {% endif %} {% else %}

Système de télétransmission non configuré.

Retourner à la facturation {{ invoicing.seq_id }}

{% endif %}
{% endblock %}