In taxes_by_invoice report, if we dont have a tax, dont try to get her name (print "---" instead).

Task #158123
This commit is contained in:
Juanjo Garcia 2023-04-04 10:21:09 +02:00
parent c55d425bcf
commit 9a16d95bea
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
<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>
<td>{{ l.tax.raw.name }}</td>
<td>{% if l.tax %}{{ l.tax.raw.name }}{% else %} --- {% endif %}</td>
<td class="no-wrap">{% if l.render.amount %}{{ l.raw.company_amount | render(digits=l.invoice.company.currency.raw.digits)}}{% else %}0.0{% endif %}</td>
{% set total = l.raw.company_base + l.raw.company_amount %}
<td class="no-wrap">{{ total | render(l.invoice.company.currency.raw.digits) }} </td>
@ -24,7 +24,7 @@
<td></td>
<td></td>
<td>{% if l.render.base %}{{l.raw.company_base | render(digits=l.invoice.company.currency.raw.digits)}}{% else %}0.0{% endif %}</td>
<td>{{ l.tax.raw.name }}</td>
<td>{% if l.tax %}{{ l.tax.raw.name }}{% else %} --- {% endif %}</td>
<td class="no-wrap">{% if l.render.amount %}{{ l.raw.company_amount | render(digits=l.invoice.company.currency.raw.digits)}}{% else %}0.0{% endif %}</td>
{% set total = l.raw.company_base + l.raw.company_amount %}
<td class="no-wrap">{{ total | render(l.invoice.company.currency.raw.digits) }} </td>