From 8892e90579284a3286a253ea820e534e152345f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Thu, 25 Sep 2014 00:52:23 +0200 Subject: [PATCH] =?UTF-8?q?[printing/facture]=20Le=20calcul=20du=20prix=20?= =?UTF-8?q?d'un=20article=20n=C3=A9cessitait=20des=20parenth=C3=A8ses.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- printing/templates/facture | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/printing/templates/facture b/printing/templates/facture index 37d21b7..d5dc21d 100644 --- a/printing/templates/facture +++ b/printing/templates/facture @@ -3,7 +3,7 @@ {{"Article : "|coul('gras')}} Prix N° Total Commentaire {% set total = [] %}{% for a in o.article %} {% do total.append( a.pu|float * a.nombre|int) %} - {{"%05.2f" % a.pu|float}}€ x{{"%02d" % a.nombre|int}} {{"%05.2f" % a.pu|float * a.nombre|int}}€ {{a.designation}} + {{"%05.2f" % a.pu|float}}€ x{{"%02d" % a.nombre|int}} {{"%05.2f" % (a.pu|float * a.nombre|int)}}€ {{a.designation}} {% endfor %} {{"total : "|coul('gras')}}{{"%05.2f" % total|sum}}€ {% endif %}