Factura

<%= individual_full_name(@invoice.parties.seller_party.individual) %>

<%= @invoice.parties.seller_party.individual.address_in_spain.address %>

<%= @invoice.parties.seller_party.individual.address_in_spain.post_code %> <%= @invoice.parties.seller_party.individual.address_in_spain.town %>

<%= @invoice.parties.seller_party.tax_identification.tax_identification_number %>

Factura num.
<%= @invoice.invoices.first.invoice_header.invoice_number %>
Fecha factura
<%= @invoice.invoices.first.invoice_issue_data.issue_date %>
Facturar a

<%= @invoice.parties.buyer_party.legal_entity.corporate_name %>

<%= @invoice.parties.buyer_party.legal_entity.address_in_spain.address %>

<%= @invoice.parties.buyer_party.legal_entity.address_in_spain.post_code %> <%= @invoice.parties.buyer_party.legal_entity.address_in_spain.town %>

<%= @invoice.parties.buyer_party.tax_identification.tax_identification_number %>

<% for item in @invoice.invoices.first.items %> <% end %> <% (8 - @invoice.invoices.first.items.size).times do %> <% end %> <% for tax in @invoice.invoices.first.taxes_outputs %> <% end %>
Concepto Importe
<%= item.item_description %> <%= to_currency(item.total_cost) %>
Base imponible <%= to_currency(@invoice.invoices.first.invoice_totals.total_gross_amount_before_taxes) %>
<%= tax_description(tax.tax_type_code, tax.tax_rate) %> <%= to_currency(tax.tax_amount.total_amount) %>
TOTAL <%= to_currency(@invoice.invoices.first.invoice_totals.invoice_total) %>