1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-26 18:37:12 +00:00

Don't escape numbers in TeX template

This commit is contained in:
Yohann D'ANELLO 2020-08-14 19:16:51 +02:00
parent 74097ecc44
commit 21ba46c1bc

View File

@ -48,7 +48,7 @@
\newcommand {\ListeProduits}{ \newcommand {\ListeProduits}{
{% for product in products %} {% for product in products %}
{{ product.designation|escape_tex }} & {{ product.amount_euros|escape_tex|floatformat:2 }} & {{ product.quantity|escape_tex|floatformat:2 }} & {{ product.total_euros|escape_tex|floatformat:2 }} \cr {{ product.designation|escape_tex }} & {{ product.amount_euros|floatformat:2 }} & {{ product.quantity|floatformat:2 }} & {{ product.total_euros|floatformat:2 }} \cr
{% endfor %} {% endfor %}
} }
@ -94,7 +94,7 @@
% Liste des produits facturés : Désignation, quantité, prix unitaire HT % Liste des produits facturés : Désignation, quantité, prix unitaire HT
{% for product in products %} {% for product in products %}
\AjouterProduit{{"{"}}{{ product.designation|escape_tex }}} {{"{"}}{{ product.quantity|escape_tex }}} {{"{"}}{{ product.amount_euros|escape_tex }}} {{"{"}}{{ product.total_euros|escape_tex }}} \AjouterProduit{{"{"}}{{ product.designation|escape_tex }}} {{"{"}}{{ product.quantity }}} {{"{"}}{{ product.amount_euros }}} {{"{"}}{{ product.total_euros }}}
{% endfor %} {% endfor %}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%