Factura: {{ invoice.code }}
Fecha: {{ invoice.date|date('d/m/Y') }}
{{ invoice.fromName }}
{{ invoice.fromAddress1 }}
{{ invoice.fromZipCode }}, {{ invoice.fromAddress2 }}
{{ invoice.fromAddress3 }}
{{ invoice.fromNif }}
{{ invoice.toName }}
{{ invoice.toAddress1 }}
{{ invoice.toZipCode }}, {{ invoice.toAddress2 }}
{{ invoice.toAddress3 }}
{{ invoice.toNif }}
{% set subtotal = 0 %} {% for item in invoice.items %} {% set subtotal = subtotal + (item.price*item.quantity) %} {% endfor %}
Concepto Precio unid. Cantidad TOTAL
{{ item.description }} {{ item.price|number_format(2, ',', '.') }} € {{ item.quantity }} {{ (item.price*item.quantity)|number_format(2, ',', '.') }} €
Forma de pago: Transferencia Subtotal {{ subtotal|number_format(2, '.', ',') }} €
Entidad: {{ invoice.bankName }} IVA {{ invoice.iva }}% {{ ((subtotal * invoice.iva) / 100)|number_format(2, '.', ',') }} €
Nº cuenta: {{ invoice.bankIban }} IRPF {{ invoice.irpf }}% {{ ((subtotal * invoice.irpf) / 100)|number_format(2, '.', ',') }} €
TOTAL {{ (subtotal + ((subtotal*invoice.iva)/100) - ((subtotal*invoice.irpf)/100))|number_format(2, '.', ',') }} €