{% include INIT_VARIABLES %} {% include FOOTER f 30 50 %} {% import 'AppBundle:Documents:v2\\Import\\invoice.html.twig' as invoiceF %} {% include TEMPLATE_CSS_PORTRAIT %}
{# params include #} {% set displaySeller = true %} {% include TEMPLATE_HEADER_PORTRAIT %}
{% if object.invoice is defined and object.invoice is not empty %} {% endif %}
{{ invoiceF.getTitle(object, {'documentType': documentType}) }}
{% if without_reference is defined and without_reference == false %} {{ invoiceF.getSubTitle(object, {}) }} {% endif %}
{{ 'contact.customer.title'|trans({}, 'DocumentTrans' )}} {# params include #} {% set showLegalFormContact = true %} {% set numbers = true %} {% set notShowSiret = true %} {% set notShowEmail = true %} {% set notShowTel = true %} {% set showCountry = true %} {% include TEMPLATE_CUSTOMER %}
{{ 'date'|trans({}, 'DocumentTrans' )}} : {% if invoiceDate is not empty %} {{ invoiceDate|date('d/m/Y') }} {% endif %} {{ 'contact.customer.account'|trans({}, 'DocumentTrans' )}} : {{ customerAccount }}
{% set hasTableParentTitle = false %} {% include TEMPLATE_SELLING_TABLE %}
{% if invoiceComment is not empty %}



{{ 'comments'|trans({}, 'DocumentTrans' )}} : {{ invoiceComment | truncate(600, true, '') | nl2br }}

{% endif %} {% if invoicePayments is not empty %} {% endif %}
{% set taxTabList = sellingTaxData.groupByTaxName %} {% set sumTax = 0 %} {% for key, taxTab in taxTabList %} {% set sumTax = sumTax + taxTab.taxValue %} {% endfor %}
{{ 'tax.header.table'|trans({}, 'DocumentTrans' )}} {{ 'tax.header.base'|trans({}, 'DocumentTrans' )}} {{ 'tax.header.amount'|trans({}, 'DocumentTrans' )}}
{{ key|trans({}, 'DocumentTrans') }} {{ taxTab.priceWithoutTax|number_format(2, ',', ' ') }} {{ currencySymbol }} {{ taxTab.taxValue|number_format(2, ',', ' ') }} {{ currencySymbol }}
{{ 'tax.total'|trans({}, 'DocumentTrans' )}} {{ sumTax|number_format(2, ',', ' ') }} {{ currencySymbol }}
{% if invoicePayments is not empty %} {% endif %} {% set totalPayment = 0 %} {% for payment in invoicePayments %} {% set totalPayment = totalPayment + payment.amount %} {% endfor %}
{{ 'payment.title'|trans({}, 'DocumentTrans' ) }}
{{ 'payment.type'|trans({}, 'DocumentTrans' ) }} {{ 'payment.amount'|trans({}, 'DocumentTrans' ) }} {{ 'payment.received'|trans({}, 'DocumentTrans' ) }} {{ 'payment.deadline'|trans({}, 'DocumentTrans' ) }} {{ 'payment.bill'|trans({}, 'DocumentTrans' ) }}
{% if payment.mode is not empty %} {{ payment.mode }} {% endif %} {% if payment.checkNumber is not empty %} {{ payment.bank }} {{ 'payment.number'|trans({}, 'DocumentTrans' ) }} {{ payment.checkNumber }} {% endif %} {% if payment.amount is not empty %} {{ payment.amount|number_format(2, ',', ' ') }} {{ currencySymbol }} {% endif %} {% if payment.receiveDate is not empty %} {{ payment.receiveDate|date("d/m/Y") }} {% endif %} {% if payment.termDate is not empty %} {{ payment.termDate|date("d/m/Y") }} {% endif %} {% if payment.condition is not empty %} {{ payment.condition }} {% endif %}
{{ 'payment.total'|trans({}, 'DocumentTrans' ) }} {{ totalPayment|number_format(2, ',', ' ') }} {{ currencySymbol }}
{{ 'payment.left_to_pay'|trans({}, 'DocumentTrans' ) }} {% if invoiceBalance is not empty %} {{ invoiceBalance|number_format(2, ',', ' ') }} {{ currencySymbol }} {% endif %}