Skip to content
Snippets Groups Projects
Commit f222ba13 authored by ynerant's avatar ynerant
Browse files

🐛 Remove \eaddto in the invoice template, unicode characters weren't supported

parent d95cd8c7
No related branches found
No related tags found
3 merge requests!104Beta,!98Morefront,!91Documents
Pipeline #8377 passed with warnings with stages
in 5 minutes and 8 seconds
...@@ -24,8 +24,6 @@ ...@@ -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 @@ ...@@ -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){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment