{% extends 'components/pdf.html.twig' %} {% block content %}

{{ informations.name|capitalize }}

{#

Order # 12345

#}
{{ informations.address.name }}
{{ informations.address.address }}
{{ informations.address.postcode }}
{{ informations.address.city }}
{{ informations.address.country }}

{{ 'Recipient'|capitalize|trans }} :

{{ invoice.customerFirstname }} {{ invoice.customerLastname }}
{{ invoice.customerAddress }}
{{ invoice.customerPostalCode }}
{{ invoice.customerCity }}
{{ invoice.customerCountry }}
{% if invoice.date is defined and invoice.date is not empty %}
{{ 'Invoice date'|trans }}
{{ invoice.date|date("m/d/Y") }}
{% endif %} {% if invoice.reference is defined and invoice.reference is not empty %}
{{ 'Reference'|trans }}
{{ invoice.reference }}
{% endif %} {% if invoice.paymentDueDate is defined and invoice.paymentDueDate is not empty %}
{{ 'Payment due date'|trans }}
{{ invoice.paymentDueDate|date("m/d/Y") }}
{% endif %} {% if invoice.paymentModality is defined and invoice.paymentModality is not empty %}
{{ 'Payment modality'|trans }}
{{ invoice.paymentModality }}
{% endif %} {% if invoice.supplier is defined and invoice.supplier is not empty %}
{{ 'Supplier'|trans }}
{{ invoice.supplier }}
{% endif %} {% if invoice.customerFullName is defined and invoice.customerFullName is not empty %}
{{ 'Contact client'|trans }}
{{ invoice.customerFullName }}
{% endif %} {% if invoice.paymentPenalties is defined and invoice.paymentPenalties is not empty %}
{{ 'Payment penalties'|trans }}
{{ invoice.paymentPenalties }}
{% endif %} {% if invoice.saleDate is defined and invoice.saleDate is not empty %}
{{ 'Sale date'|trans }}
{{ invoice.saleDate|date("m/d/Y") }}
{% endif %}

{{ 'Additional info'|capitalize|trans }}

{{ invoice.additionalInfo }}

{#
#} {#

{{ 'Invoice details'|trans }}

#} {#
#}
{% for element in invoiceElement %} {% endfor %}
{{ 'Description'|trans }} {{ 'Quantity'|trans }} {{ 'Unit'|trans }} {{ 'Unit price'|trans }} {{ 'TVA'|trans }} {{ 'Total HT'|trans }}
{{ element.description }} {{ element.quantity }} {{ element.unit }} {{ element.unitPrice|number_format(2, '.', ',') }} € {{ tva }} % {{ element.totalWithoutTaxes|number_format(2, '.', ',') }} €
{{ 'Total'|trans }}
{{ invoice.totalWithoutTaxes }} €
{{ 'TVA'|trans }}
{{ tva }} %
{{ 'Total Net'|trans }}
{{ invoice.totalPaymentDue }} €

{{ informations.name|capitalize|trans }}

{#

Order # 12345

#}
{{ informations.address.name }}
{{ informations.address.address }}
{{ informations.address.postcode }}
{{ informations.address.city }}
{{ informations.address.country }}

{{ 'Bank details'|capitalize|trans }}

{{ 'Bank'|trans }}
{{ invoice.bankName }}
{{ 'Bank code'|trans }}
{{ invoice.bankCode }}
{{ 'Account number'|trans }}
{{ invoice.accountNumber }}
{{ 'IBAN'|trans }}
{{ invoice.ibanNumber }}
{{ 'SWIFT/BIC'|trans }}
{{ invoice.swiftBicNumber }}
{% endblock %}