[printing/templates] Mises en page diverses

This commit is contained in:
Valentin Samir 2013-12-05 14:29:44 +01:00
parent 4a0e0225b9
commit c894eecc15
2 changed files with 4 additions and 2 deletions

View file

@ -2,7 +2,8 @@
{% if o.article %} {% if o.article %}
{{"Article : "|coul('gras')}} Prix N° Total Commentaire {{"Article : "|coul('gras')}} Prix N° Total Commentaire
{% set total = [] %}{% for a in o.article %} {% 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}} {% 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}}
{% endfor %} {% endfor %}
{{"total : "|coul('gras')}}{{"%05.2f" % total|sum}}€ {{"total : "|coul('gras')}}{{"%05.2f" % total|sum}}€
{% endif %} {% endif %}

View file

@ -1,5 +1,6 @@
{% if o.info %} {% if o.info %}
{{"Remarque : "|coul('gras')}}{{o.info|reverse|join('\n ')}} {{"Remarque : "|coul('gras')}}
{{o.info|join('\n ')}}
{% endif %} {% endif %}
{% if o.historique %} {% if o.historique %}
{{"Historique : "|coul('gras')}}{{o.historique[-limit:]|reverse|join('\n ')}} {{"Historique : "|coul('gras')}}{{o.historique[-limit:]|reverse|join('\n ')}}