{% set nc = namespace(before_invoice_id=None) %}
{%for l in record %}
{% if nc.before_invoice_id != l.invoice.raw.id %}
{{ l.invoice.move.render.date }}
{{ l.account.render.code}}
{{ l.invoice.party.render.rec_name}}
{{ l.invoice.party_tax_identifier and l.invoice.party_tax_identifier.render.code or l.invoice.party.tax_identifier and l.invoice.party.tax_identifier.render.code }}
{% if l.invoice.raw.state == 'cancel' %}*{% endif %}{{ l.invoice.render.number }}
{{ l.invoice.render.invoice_date }}
{% if l.render.base %}{{l.raw.company_base | render(digits=l.invoice.company.currency.raw.digits)}}{% else %}0.0{% endif %}