{% if headerData is empty %} {% set headerData = groupData %} {% endif %} {% set data = { 'sellerData': { 'contact': { 'label': 'user.seller.title'|trans({}, 'DocumentTrans') , 'value': seller.lastName ~ " " ~ seller.firstName, 'labelClass': "fw-b", 'valueClass': "pad-r-5" }, 'phoneNumber': { 'label': 'contact.tel'|trans({}, 'DocumentTrans'), 'value': seller.phoneNumber, 'labelClass': "fw-b", 'valueClass': "td-u pad-r-5" }, 'email': { 'label': 'email'|trans({}, 'DocumentTrans'), 'value': seller.email, 'labelClass': "fw-b", 'valueClass': "" } }, 'groupBankData': { 'iban': { 'label': 'group.iban'|trans({}, 'DocumentTrans'), 'value': headerData.iban, 'labelClass': "fw-b", 'valueClass': "pad-r-5" }, 'swift': { 'label': 'group.swift'|trans({}, 'DocumentTrans'), 'value': headerData.swift, 'labelClass': "fw-b", 'valueClass': "pad-r-5" }, 'bankDomiciliation': { 'label': 'group.domiciliation'|trans({}, 'DocumentTrans'), 'value': headerData.bankDomiciliation, 'labelClass': "fw-b", 'valueClass': "pad-r-5" } } } %} {% endif %} {% endblock tvaIntracom %} {% block infoAdditionalCustomer %} {% endblock infoAdditionalCustomer %} {% endembed %}
{% include 'AppBundle:Documents:v2\\Include\\Global\\image.html.twig' with {'image': headerData.logo, 'containerImgHeight': 120} %} {% if not (without_header is defined and without_header == true) %} {% if group_header is defined and group_header == true %}
{{ headerData.commonName is not empty ? headerData.commonName : headerData.corporateName }}
{{ headerData.addressSellingPoint.address }} {% if headerData.addressSellingPoint.address2 is not null %} {{ headerData.addressSellingPoint.address2 }} {% endif %} {{ headerData.addressSellingPoint.postalCode }} {{ headerData.addressSellingPoint.city }} {{ globalF.getCountry(headerData.addressSellingPoint.country, {'countries': countries}) }}
{% if seller is defined and seller is not empty %}

{% for seller in data['sellerData'] %} {% if seller.value is not null %} {{ seller.label }} : {{ seller.value }} {% endif %} {% endfor %}

{% endif %}

{% for group in data['groupBankData'] %} {% if group.value is not null %} {{ group.label }} : {{ group.value }} {% endif %} {% endfor %}

{% elseif (vehicle_selling_point_header or seller_selling_point_header or user_selling_point_header) %}

{{ headerData.name }}

{{ headerData.addressSellingPoint.address }} {{ headerData.addressSellingPoint.address2 }} {{ headerData.addressSellingPoint.postalCode }} {{ headerData.addressSellingPoint.city }}
{{ headerData.phoneNumber }}
{{ headerData.email }}
{% if displaySeller is defined and displaySeller == true %}

{{ 'user.seller.title'|trans({}, 'DocumentTrans' ) }} : {{ seller.lastName }} {{ seller.firstName }}

{{ 'contact.title'|trans({}, 'DocumentTrans' ) }} : {{ seller.phoneNumber }} | {{ seller.email }}

{% endif %} {% endif %} {% endif %}
{% embed 'AppBundle:Documents:v2\\Include\\Administrative\\customer.html.twig' with { 'loaner' : sellingData.loaner, 'customer' : sellingData.customer, 'coCustomer' : sellingData.coCustomer, 'isSpouse' : sellingData.isSpouse, 'countries': countries } %} {% block loanerEmpty %}{% endblock %} {% block tvaIntracom %} {% if customer.tvaIntracom is not empty %}
{{ 'group.vat'|trans({}, 'DocumentTrans') }} : {{ customer.tvaIntracom }}
{% if customer.cellPhoneNumber is not empty %} {{ 'cellphone_number'|trans({}, 'DocumentTrans' )}} : {{ customer.cellPhoneNumber }} {% endif %} {% if customer.phoneNumber is not empty %} {{ 'phone_number'|trans({}, 'DocumentTrans' )}} : {{ customer.phoneNumber }} {% endif %}