mirror of https://gitlab.crans.org/bde/nk20
🐛 Remove \eaddto in the invoice template, unicode characters weren't supported
This commit is contained in:
parent
d95cd8c7c7
commit
f222ba134d
|
@ -24,8 +24,6 @@
|
||||||
\FPround{\prix}{#3}{2}
|
\FPround{\prix}{#3}{2}
|
||||||
\FPround{\montant}{#4}{2}
|
\FPround{\montant}{#4}{2}
|
||||||
\FPadd{\TotalHT}{\TotalHT}{\montant}
|
\FPadd{\TotalHT}{\TotalHT}{\montant}
|
||||||
|
|
||||||
\eaddto\ListeProduits{#1 & \prix & #2 & \montant \cr}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
\newcommand{\AfficheResultat}{%
|
\newcommand{\AfficheResultat}{%
|
||||||
|
@ -48,15 +46,12 @@
|
||||||
\textbf{Total TTC} & & & \TotalTTC
|
\textbf{Total TTC} & & & \TotalTTC
|
||||||
}
|
}
|
||||||
|
|
||||||
\newcommand*\eaddto[2]{% version développée de \addto
|
\newcommand {\ListeProduits}{
|
||||||
\edef\tmp{#2}%
|
{% for product in products %}
|
||||||
\expandafter\addto
|
{{ product.designation|safe|escape_tex }} & {{ product.amount_euros|safe|escape_tex }} & {{ product.quantity|safe|escape_tex }} & {{ product.total_euros|safe|escape_tex }} \cr
|
||||||
\expandafter#1%
|
{% endfor %}
|
||||||
\expandafter{\tmp}%
|
|
||||||
}
|
}
|
||||||
|
|
||||||
\newcommand {\ListeProduits}{}
|
|
||||||
|
|
||||||
% Logo du BDE
|
% Logo du BDE
|
||||||
\AddToShipoutPicture*{
|
\AddToShipoutPicture*{
|
||||||
\put(0,0){
|
\put(0,0){
|
||||||
|
|
Loading…
Reference in New Issue