{% for line in document.lines %} {% if line.raw.type == 'line' %} {% if line.raw.description %} {% elif line.raw.product_supplier and line.product_supplier.raw.name %} {% elif line.raw.product %} {% endif %} {% endif %} {% if line.raw.type == 'comment' %} {% endif %} {% if line.raw.type == 'title' %} {% endif %} {% endfor %}
{{ label('product.product', 'code') }} {{ label('product.template', 'name') }} {{label('purchase.line', 'quantity') }}
{{ line.render.description }}{{ line.product_supplier.render.code or '-' }} {{ line.product_supplier.render.name or '-' }}{{ line.product and line.product.render.code or '-' }} {{ line.product and line.product.render.name or '-' }}{{ line.render.quantity }} {{ line.unit and line.unit.render.symbol or '' }}
{{ line.render.type }} {{ line.render.description }}
{{ line.render.description }}