{% set show_lots = document.raw.show_lots %}
{{ label('product.product', 'code') }} | {{ label('product.template', 'name') }} | {% if show_lots %}{{ label('stock.move', 'lot') }} | {% if show_lots and document.raw.incoming_moves and 'expiration_date' in document.raw.incoming_moves[0]%}{{ label('stock.lot', 'expiration_date') }} | {%else%}{% endif %} {%else%} | {% endif %} | {{label('stock.move', 'quantity') }} | {{ label('stock.move', 'unit') }} | {%if valued == True %}{{label('stock.move', 'gross_unit_price') }} | {{ label('stock.move', 'amount') }} | {%else%}{%endif%} | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ move.product and move.product.render.code or '-' }} | {{ move.product and move.product.render.name or '-' }} | {% if show_lots %} {% if move.lot %}{{ move.lot.render.number }} | {%else%}{%endif%} {% if move.raw.lot and move.lot.raw.expiration_date %} | {{ move.lot.render.expiration_date }} | {%else%}{% endif %} {%else%} | {%endif%} | {{ move.render.quantity }} | {{ move.unit.render.name }} | {%if valued == True %}{{ move.render.gross_unit_price }} | {% if move.raw.discount and move.raw.discount > 0 %}{{ '-{0:.2F}'.format(move.raw.discount*100) }}{% endif %} | {{ move.render.amount }} | {%else%}{%endif%} |