{% extends 'base.html' %} {% load humanize i18n static custom_filters %} {# Template ticket thermique 80 mm. Données : MÊME contexte que facture_detail.html — aucun calcul ici. Données fiscales (CODE DEF, EMCF, QR, TVA par groupe) identiques à l'A4. CSS : print_ticket_80mm.css (classes .t80-*) Export PDF : navigateur uniquement (window.print ou popup — Step 6). #} {% block page_title %}
| Désignation | Qté | PU | Total |
|---|---|---|---|
|
{# Désignation : retour à la ligne propre sur 72 mm #}
{{ ligne.produit.nom|upper }}{% if ligne.conditionnement_libelle_affiche %} — {{ ligne.conditionnement_libelle_affiche|upper }}{% endif %}
{# Code groupe fiscal — même logique que l'A4 ; -HC distingue le hors champ des anciennes lignes A, avant le groupe S #}
[{{ ligne.tax_group_code_affiche|default:"A" }}{% if ligne.produit.code_sku == 'HORS CHAMP' and ligne.tax_group_code_affiche == 'A' %}-HC{% endif %}]
{% if ligne.remise > 0 %}
Remise : -{{ ligne.remise|money:"FC" }}
{% endif %}
|
{% if commande.type_facture == 'FA' or commande.type_facture == 'EA' %}-{% endif %}{{ ligne.quantite }} | {{ ligne.prix_unitaire_affiche|money:"FC" }} | {% if commande.type_facture == 'FA' or commande.type_facture == 'EA' %}-{% endif %}{{ ligne.montant_affiche|money:"FC" }} |
| Nb articles : {{ commande.lignes.count }} | |||