templates/default.eruby in facturae_print-0.0.2 vs templates/default.eruby in facturae_print-0.0.3

- old
+ new

@@ -60,13 +60,15 @@ <td class="description">Base imponible</td> <td class="amount"><%= to_currency(@invoice.invoices.first.invoice_totals.total_gross_amount_before_taxes) %></td> </tr> </tbody> <tbody class="invoice-taxes"> + <% for tax in @invoice.invoices.first.taxes_outputs %> <tr> - <td class="description">IRPF 15%</td> - <td class="amount">-97.50 €</td> + <td class="description"><%= tax_description(tax.tax_type_code, tax.tax_rate) %></td> + <td class="amount"><%= to_currency(tax.tax_amount.total_amount) %></td> </tr> + <% end %> </tbody> <tbody class="invoice-total"> <tr> <td class="description">TOTAL</td> <td class="amount"><%= to_currency(@invoice.invoices.first.invoice_totals.invoice_total) %></td> \ No newline at end of file