Show party_tax_identifier from the invoice or tax_identifier from the party in taxes by invoice report

#162882
This commit is contained in:
Raimon Esteve 2023-10-18 07:47:34 +02:00
parent 49b51e8b55
commit 0531ca161e
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
<td>{{ l.invoice.move.render.date }}</td>
<td>{{ l.account.render.code}}</td>
<td style="text-align: left;">{{ l.invoice.party.render.rec_name}}</td>
<td>{% if l.invoice.party.raw.tax_identifier %}{{ l.invoice.party.tax_identifier.render.code}}{% endif %}</td>
<td>{{ 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 }}</td>
<td>{% if l.invoice.raw.state == 'cancel' %}*{% endif %}{{ l.invoice.render.number }}</td>
<td>{{ l.invoice.render.invoice_date }}</td>
<td>{% if l.render.base %}{{l.raw.company_base | render(digits=l.invoice.company.currency.raw.digits)}}{% else %}0.0{% endif %}</td>