[printing/templates] Mises en page diverses
This commit is contained in:
parent
4a0e0225b9
commit
c894eecc15
2 changed files with 4 additions and 2 deletions
|
@ -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 %}
|
||||||
|
|
|
@ -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 ')}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue