Total taxable income by type of VAT

New Member
2 0 0

Hello!

In my company they ask me that the invoice include in the totals the taxable bases by VAT tranches. In other words, the sum of the tax bases corresponding to each type of VAT.

I've been searching the forum but can't find any similar queries.

This is the last code that I have reached, I have the VAT amounts by sections but I am missing the tax bases, any ideas?

Captura.JPG

 

<table class="table-tabular" style="margin: 0 0 1.5em 0; background-color: #F8F8F8; border-collapse: collapse; padding: 1em; border: 1px solid #ddd; width: 50%; font-family: 'Gill Sans', 'Gill Sans MT', 'Myriad Pro', 'DejaVu Sans Condensed', Helvetica, Arial, sans-serif; font-size: 14px;">
<tr>
<td>Subtotal:</td>
<td> {% assign subtotal_mas_descuento = subtotal_price | plus: total_discounts %} {{ subtotal_mas_descuento| plus: shipping_price | money }}</td>
</tr>
<tr>
<td>Descuentos aplicados: {% for discount in discounts %} {{ discount.code }} {% endfor %} </td>
<td>{{ total_discounts | times: -1 | money }}</td>
</tr>
<tr>
<td>Total base imponible:</td>
<td>{{ total_price | minus: tax_price | money }}</td>
</tr> {% for line in tax_lines %}
<tr class="subtotal-line">
<td class="subtotal-line__title">Base imponible {{ line.rate | times: 100 }}%</td>
<td class="subtotal-line__value"> {{ total_line.price | minus: tax_line.price | money }}</td>
</tr> {% endfor %} {% for line in tax_lines %}
<tr class="subtotal-line">
<td class="subtotal-line__title">Total IVA {{ line.rate | times: 100 }}%</td>
<td class="subtotal-line__value">{{ line.price | money }}</td>
</tr> {% endfor %}
<tr>
<td>Total IVA</td>
<td>{{ tax_price | money }}</td>
</tr>
<tr>
<td>Total:</td>
<td>{{ total_price | money }}</td>
</tr> {% if total_paid != total_price %}
<tr>
<td>Total pagado:</td>
<td>{{ total_paid | money }}</td>
</tr> {% endif %} </table>
0 Likes