{% include INIT_VARIABLES %} {% include FOOTER f 30 50 %} {% import 'AppBundle:Documents:v2\\Import\\invoice.html.twig' as invoiceF %} {% include TEMPLATE_CSS_PORTRAIT %}
{% include TEMPLATE_HEADER_PORTRAIT %}
{{ invoiceF.getTitle(object, {'documentType': documentType}) }}
{% if without_reference is defined and without_reference == false %} {{ invoiceF.getSubTitle(object, {}) }} {% endif %}
{% set isTvaIntracomAtBottom = true %}
{% if displayLoaner == true %}
{{ 'contact.tenant.title'|trans({}, 'DocumentTrans' ) }} {% include TEMPLATE_LOANER %}
{% endif %}
{{ 'contact.customer.title'|trans({}, 'DocumentTrans' ) }} {% include TEMPLATE_CUSTOMER %}
{% if displayWorkshopVehicle == true %}
{{ 'vehicle.title'|trans({}, 'DocumentTrans' ) }}
{% include TEMPLATE_VEHICLE_TABLE_WORKSHOP %}
{% endif %}
{{ 'date'|trans({}, 'DocumentTrans' ) }} : {{ invoiceDate|date('d/m/Y H:i') }}
{% if outputDeliveryDate is not empty %} {{ 'vehicle.delivery.output'|trans({}, 'DocumentTrans') }} : {{ outputDeliveryDate|date('d/m/Y') }} {% endif %} {{ 'contact.customer.account'|trans({}, 'DocumentTrans' ) }} : {{ customerAccount }}
{% set hasTableParentTitle = true %} {% include TEMPLATE_SELLING_TABLE %}
{% set mentions = [] %} {% for groupTaxMention in groupTaxMentions %} {% if groupTaxMention.taxId in sellingTaxData.displayTaxMention %} {% if groupTaxMention.taxMention is not empty %} {% set mentions = mentions|merge([groupTaxMention.taxMention]) %} {% endif %} {% endif %} {% endfor %} {% if documentNote.complementaryMention is not empty %} {% set mentions = mentions|merge([documentNote.complementaryMention]) %} {% endif %} {% if customer.discr is defined %} {% if customer.discr == constant('AppBundle\\Entity\\Contact\\Contact::CONTACT_DISCR_INDIVIDUAL') and documentNote.individualMention is not empty %} {% set mentions = mentions|merge([documentNote.individualMention]) %} {% elseif customer.discr in [constant('AppBundle\\Entity\\Contact\\Contact::CONTACT_DISCR_PROFESSIONAL'), constant('AppBundle\\Entity\\Contact\\Contact::CONTACT_DISCR_GROUP')] and documentNote.professionalMention is not empty %} {% set mentions = mentions|merge([documentNote.professionalMention]) %} {% endif %} {% endif %} {% if mentions|length > 0 %}

{{ 'administrative.mentions.tax.title'|trans({}, 'DocumentTrans' )}} : {{ mentions|join(' | ') }}


{% endif %}

{% set remarksBloc = "" %} {% for note in invoiceNotes if invoiceNotes is not empty %} {% set remarks = note.title ~ ' ' ~ note.content %} {% set remarks = remarks | truncate(500, true, '...') %} {% set remarks = remarks ~ '\n' %} {% set remarksBloc = remarksBloc ~ remarks %} {% endfor %} {% if invoiceAdditionalRemark is not empty %} {% set remarksBloc = remarksBloc ~ invoiceAdditionalRemark | truncate(500, true, '...') %} {% endif %} {% if invoiceComment is not empty %} {% set remarksBloc = remarksBloc ~ invoiceComment | truncate(500, true, '...') %} {% endif %} {{ remarksBloc | truncate(1500, true, '...') | nl2br }}


{% if groupData.iban is defined and groupData.iban is not empty %} {{ 'group.bank_details'|trans({}, 'DocumentTrans' ) }} : {{ groupData.iban }} {% if groupData.bankDomiciliation is not empty %} {{ groupData.bankDomiciliation }} {% endif %} {% endif %} {% if displaySwift is defined and groupData.swift is not empty %} {{ groupData.swift }} {% endif %}

{% if object.type == constant('AppBundle\\Entity\\Administrative\\Selling\\AdministrativeSellingBase::ADMINISTRATIVE_SELLING_TYPE_ESTIMATE') %} {% if gdrpAccepted is defined and gdrpAccepted == true %}
{{ 'administrative.annex.txt_12'|trans({}, 'DocumentTrans' ) }}
{% endif %} {% endif %} {% if invoiceFunding.amount is not null or 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 %} {% if invoiceFunding.choice != "enumFundingChoice.no" %} {% endif %}
{{ '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 %}
{% if invoiceFunding.choice == "enumFundingChoice.yes" %} {{ 'funding.choice.yes'|trans({}, 'DocumentTrans' ) }} {% elseif invoiceFunding.choice == "enumFundingChoice.personnal" %} {{ 'funding.choice.personal'|trans({}, 'DocumentTrans' ) }} {% endif %} {% if invoiceFunding.amount is not empty %} {{ invoiceFunding.amount|number_format(2, ',', ' ') }} {{ currencySymbol }} {% endif %} {% if invoiceFunding.duration is not empty %} {{ 'funding.duration'|trans({'%duration%': invoiceFunding.duration}, 'DocumentTrans' ) }} {% endif %} {% if invoiceFunding.rate is not empty %} {{ 'funding.rate'|trans({'%rate%': invoiceFunding.rate}, 'DocumentTrans' ) }} {% 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 %}
{% if notShowColumnTaxAndTotalWithTax == false %} {% endif %} {% if notShowColumnTaxAndTotalWithTax == false %} {% endif %}
{# displayDiscount variable is defined into TEMPLATE_SELLING_TABLE #} {% if displayDiscount == true %} {{ 'administrative.total.price_without_tax_discount'|trans({}, 'DocumentTrans' ) }} {% else %} {{ 'administrative.total.price_without_tax'|trans({}, 'DocumentTrans' ) }} {% endif %} {{ 'administrative.tax'|trans({}, 'DocumentTrans' ) }} {{ 'administrative.total.price_with_tax'|trans({}, 'DocumentTrans' ) }}
{% set priceWithoutTax = priceWithoutTax - discountValue %} {{ priceWithoutTax|number_format(2, ',', ' ') }} {{ currencySymbol }} {{ taxValue|number_format(2, ',', ' ') }} {{ currencySymbol }} {{ priceWithTax|number_format(2, ',', ' ') }} {{ currencySymbol }}
{% if displaySponsorship == true and isSponsorshipDisplayed == true %}
{% include SPONSORSHIP_2020 %} {% endif %}