{% set show_lots = document.raw.show_lots %} {% if show_lots %} {% if show_lots and document.raw.incoming_moves and 'expiration_date' in document.raw.incoming_moves[0]%} {%else%} {%if valued == True %} {%else%} {% for move in document.incoming_moves %} {% if show_lots %} {% if move.lot %} {%else%} {%else%} {%if valued == True %} {%else%} {% endfor %}
{{ label('product.product', 'code') }} {{ label('product.template', 'name') }}{{ label('stock.move', 'lot') }}{{ label('stock.lot', 'expiration_date') }} {% endif %} {%else%} {% endif %} {{label('stock.move', 'quantity') }} {{ label('stock.move', 'unit') }}{{label('stock.move', 'gross_unit_price') }} {{ label('stock.move', 'amount') }} {%endif%}
{{ move.product and move.product.render.code or '-' }} {{ move.product and move.product.render.name or '-' }}{{ move.lot.render.number }} {%endif%} {% if move.raw.lot and move.lot.raw.expiration_date %} {{ move.lot.render.expiration_date }} {% endif %} {%else%} {%endif%} {{ move.render.quantity }} {{ move.unit.render.name }}{{ 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 }} {%endif%}