{% extends 'base.html' %} {% load humanize i18n static custom_filters %} {# Template ticket thermique 80 mm pour Pro-Forma. Données : MÊME contexte que proforma_detail.html — aucun calcul ici. CSS : print_ticket_80mm.css (classes .t80-*) #} {% block page_title %}
PRO-FORMA #{{ proforma.numero }}
{% endblock %} {% block content %} {# ── CSS dédié ticket 80 mm ───────────────────────────────────────────── #}
{% if document_retour_url %} {% trans "Retour" %} {% else %} {% trans "Retour aux Pro-Forma" %} {% endif %}
{% if proforma_ui_permissions.show_print_button %} {% include "facturation/partials/print_format_controls.html" %} {% endif %}
{# ── EN-TÊTE SOCIÉTÉ ─────────────────────────────────────────────── #}
Logo
{{ config.nom_entreprise }}
{% if document_point_de_vente %}
PDV : {{ document_point_de_vente.nom }}
{% endif %} {% if document_point_de_vente and document_point_de_vente.adresse %}
{{ document_point_de_vente.adresse }}
{% endif %}
NIF : {{ config.nif|default:"-" }} | RCCM : {{ config.rccm|default:"-" }}
{% if config.id_nat %}
Id. Nat : {{ config.id_nat }}
{% endif %} {% if config.telephone %}
Tél : {{ config.telephone }}
{% endif %}

Opérateur : {{ proforma.vendeur.username|upper }}
Date : {{ proforma.date_proforma|date:"d/m/Y H:i" }}

{{ document_titre|default:"PRO-FORMA" }}
N° {{ document_numero|default:proforma.numero }}
{# /t80-header #} {# ── CLIENT ───────────────────────────────────────────────────────── #} {% if proforma.client %}
CLIENT
{{ proforma.client.nom_complet|default:"Client Divers"|upper }}
{% if proforma.client.nif %}
NIF : {{ proforma.client.nif }}
{% endif %} {% if proforma.client.telephone %}
Tél : {{ proforma.client.telephone }}
{% endif %}
{% endif %} {# ── COMMENTAIRE ──────────────────────────────────────────────────── #} {% if proforma.commentaire %}
{% for cmt in proforma.commentaire|dgi_comments %}
{{ cmt }}
{% endfor %}
{% endif %} {# ── TABLEAU ARTICLES ─────────────────────────────────────────────── #}
{% for ligne in lignes_document %} {% endfor %}
Désignation Qté PU Total
{{ ligne.designation|upper }}
[{{ ligne.tax_group_code|default:"A" }}]
{% if ligne.remise > 0 %}
Remise : -{{ ligne.remise|money:"FC" }}
{% endif %}
{{ ligne.quantite }} {{ ligne.prix_unitaire|money:"FC" }} {{ ligne.montant_ttc_avec_ts|money:"FC" }}
Nb articles : {{ proforma.lignes.count }}
{# /t80-lines #} {# ── TOTAUX ───────────────────────────────────────────────────────── #}
{% if proforma.remise_globale > 0 %}
Remise globale -{{ proforma.remise_globale|money:"FC" }}
{% endif %} {% for tax in tax_details %} {% if tax.rate > 0 or tax.display_as_taxable %}
H.T. [{{ tax.code }}]{% if tax.group_display_label %} {{ tax.group_display_label }}{% endif %} {{ tax.ht|money:"FC" }}
TVA [{{ tax.code }}]{% if tax.group_display_label %} {{ tax.group_display_label }}{% endif %} {{ tax.tva|money:"FC" }}
{% else %}
Total [{{ tax.code }}]{% if tax.group_display_label %} {{ tax.group_display_label }}{% else %} Régime dérogatoire{% endif %} {{ tax.ht|money:"FC" }}
{% endif %} {% if tax.ts_valeur > 0 %}
T.S. [{{ tax.code }}]{% if tax.group_display_label %} {{ tax.group_display_label }}{% endif %} {{ tax.ts_valeur|money:"FC" }}
{% endif %} {% endfor %}
TOTAL TTC {{ proforma.montant_total|money:"FC" }}
{# /t80-totals #} {# ── PIED DE TICKET ───────────────────────────────────────────────── #}
{# /t80-page #}
{# /t80-screen-wrapper #} {% endblock %} {% block extra_js %} {{ block.super }} {% endblock %}