{% extends 'base.html' %}{% load static i18n %} {% block page_title %}
{{ document_titre|default:"Pro-Forma" }} #{{ document_numero|default:proforma.numero }}
{% endblock %} {# Memes feuilles que la facture A4 : la Pro-Forma reprend sa mise en page. #} {% block extra_css %}{% include "facturation/partials/invoice_document_styles.html" %}{% endblock %} {% block content %} {% if is_newly_created %}
La Pro-Forma {{ proforma.numero }} a bien été créée.
{% endif %} {% if is_updated %}
{% trans "La Pro-Forma a bien été modifiée." %} {{ proforma.numero }}
{% endif %}
{% if document_retour_url %}{# Addition restaurant : document non enregistre, seulement imprimable. #} {% include "facturation/partials/print_format_controls.html" %} Retour {% else %} {% if proforma_ui_permissions.show_print_button %}{% include "facturation/partials/print_format_controls.html" %} Télécharger PDF{% endif %} {% if proforma.facture_id %} {% trans "Voir la facture" %} {{ proforma.facture.numero }} {% else %}{# Modifier / supprimer : seulement tant qu'aucune facture n'est rattachee. #} {% if proforma_ui_permissions.show_invoice_button %} {% trans "Facturer" %}{% endif %} {% if proforma_ui_permissions.show_edit_button %} {% trans "Modifier" %}{% endif %} {% if proforma_ui_permissions.show_delete_button %}
{% csrf_token %}
{% endif %} {% endif %} Retour {% endif %}
{% include "proforma/partials/_proforma_document.html" %}
{% if auto_print %}{% endif %} {% include "proforma/partials/_delete_confirm.html" %} {% endblock %} {% block extra_js %}{{ block.super }}{% endblock %}