for each="sale in records"
if test="True"
Producto:
------------------------------------------------
/if
for each="line in sale.lines"
choose test=""
when test="line.type == 'line'"
if test="line.product"
line.product.name -- (str(float(line.quantity)) if line.quantity else '') + ((line.unit.symbol) or '')
/if
if test="line.description"
for each="line in line.description.split('\n')"
line
/for
/if
/when
when test="line.type == 'title'"
for each="line in (line.description or '').split('\n')"line/for
/when
otherwise test=""
for each="line in (line.description or '').split('\n')"
line
/for
/otherwise
/choose
/for
-------------------------------------------------
SOFTWARE POTENCIADO POR ONECLUSTER.ORG
/end
/for