{% if groupData.legalForm is not empty %} {{ groupData.legalForm }}  {% endif %} {% if groupData.commonName is not empty %} {{ groupData.commonName }}  {% elseif groupData.corporateName is not empty %} {{ groupData.corporateName }}  {% endif %}

{{ groupData.addressBilling.address }} {{ groupData.addressSellingPoint.address2 }}  {{ groupData.addressSellingPoint.postalCode }}  {{ groupData.addressSellingPoint.city }}

{% if groupData.phoneNumber is not empty %} Tél : {{- groupData.phoneNumber -}} {% endif %} {% if groupData.faxNumber is not empty %} Fax : {{- groupData.faxNumber -}} {% endif %} {% if groupData.email is not empty %} Email : {{- groupData.email -}} {% endif %}

{% if siretNumber is defined and siretNumber == true %}

SIRET : {% if groupData.siretNumber is not empty %} {{ groupData.siretNumber }} {% else %} {{ emptyVariable }} {% endif %}

{% endif %}

{% if seller.lastName is not empty %} Vendeur : {% if seller.lastName is not empty %} {{ seller.lastName }} {% endif %} {% if seller.firstName is not empty %} {{ seller.firstName }} {% endif %} {% endif %} {% if seller.portableNumber is defined and seller.portableNumber is not empty %} Tél : {{ seller.portableNumber }} {% endif %} {% if seller.email is defined and seller.email is not empty %} Email : {{ seller.email }} {% endif %}


Date de disponibilité : {% if order_form.deliveryDate is defined and order_form.deliveryDate is not empty %} {{ order_form.deliveryDate|date('d/m/Y') }} {% endif %}


Client {% if customer.discr == constant('AppBundle\\Entity\\Contact\\Contact::CONTACT_DISCR_INDIVIDUAL') %} {% if customer.lastName is not empty or customer.firstName is not empty %} {% endif %} {% if customer.address is not empty or customer.address2 is not empty %} {% endif %} {% if customer.postalCode is not empty or customer.city is not empty %} {% endif %} {% if customer.email is not empty %} {% endif %} {% else %} {% if customer.corporateNameContact is not empty %} {% endif %} {% if customer.address is not empty or customer.address2 is not empty %} {% endif %} {% if customer.postalCode is not empty or customer.city is not empty %} {% endif %} {% if customer.email is not empty %} {% endif %} {% endif %}
{% if isSpouse is defined and isSpouse == true %} {# First case, Customer & Co-Customer have same lastname and they are spouse #} {% if (coCustomerQuick.lastName is not empty and customer.lastName|upper == coCustomerQuick.lastName|upper) or (coCustomer.lastName is not empty and customer.lastName|upper == coCustomer.lastName|upper) %} {{ customer.civility|trans({}, 'CommonTrans') }} {% if coCustomerQuick.discr == constant('AppBundle\\Entity\\Contact\\ContactQuick\\ContactQuickBase::CONTACT_DISCR_INDIVIDUAL') or coCustomer.discr == constant('AppBundle\\Entity\\Contact\\Contact::CONTACT_DISCR_INDIVIDUAL') %} {% if coCustomerQuick.lastName is not empty and customer.lastName|upper == coCustomerQuick.lastName|upper %} et {{ coCustomerQuick.civility|trans({}, 'CommonTrans') }} {% elseif coCustomer.lastName is not empty and customer.lastName|upper == coCustomer.lastName|upper %} et {{ coCustomer.civility|trans({}, 'CommonTrans') }} {% endif %} {% endif %} {{ customer.lastName }} {{ customer.firstName }} {# Second case, Customer & Co-Customer haven't same lastname and they are spouse #} {% elseif (coCustomerQuick.lastName is not empty and customer.lastName|upper != coCustomerQuick.lastName|upper) or (coCustomer.lastName is not empty and customer.lastName|upper != coCustomer.lastName|upper) %} {{ customer.civility|trans({}, 'CommonTrans') }} {{ customer.lastName }} {{ customer.firstName }} {% if coCustomerQuick.discr == constant('AppBundle\\Entity\\Contact\\ContactQuick\\ContactQuickBase::CONTACT_DISCR_INDIVIDUAL') or coCustomer.discr == constant('AppBundle\\Entity\\Contact\\Contact::CONTACT_DISCR_INDIVIDUAL') %} {% if coCustomerQuick.lastName is not empty and customer.lastName|upper != coCustomerQuick.lastName|upper %} et {{ coCustomerQuick.civility|trans({}, 'CommonTrans') }} {{ coCustomerQuick.lastName }} {{ coCustomerQuick.firstName }} {% elseif coCustomer.lastName is not empty and customer.lastName|upper != coCustomer.lastName|upper %} et {{ coCustomer.civility|trans({}, 'CommonTrans') }} {{ coCustomer.lastName }} {{ coCustomer.firstName }} {% endif %} {% endif %} {% elseif coCustomerQuick.lastName is empty %} {{ customer.civility|trans({}, 'CommonTrans') }} {{ customer.lastName }} {{ customer.firstName }} {% endif %} {% else %} {# Third case, Customer & Co-Customer have or haven't same lastname and they aren't spouse #} {{ customer.civility|trans({}, 'CommonTrans') }} {{ customer.lastName }} {{ customer.firstName }} {% if coCustomerQuick.discr is not empty and coCustomerQuick.discr == constant('AppBundle\\Entity\\Contact\\ContactQuick\\ContactQuickBase::CONTACT_DISCR_INDIVIDUAL') %} ou {{ coCustomerQuick.civility|trans({}, 'CommonTrans') }} {{ coCustomerQuick.lastName }} {{ coCustomerQuick.firstName }} {% elseif coCustomer.discr is not empty and coCustomer.discr == constant('AppBundle\\Entity\\Contact\\Contact::CONTACT_DISCR_INDIVIDUAL') %} ou {{ coCustomer.civility|trans({}, 'CommonTrans') }} {{ coCustomer.lastName }} {{ coCustomer.firstName }} {% endif %} {% endif %}
{{ customer.address }} {{ customer.address2 }}
{{ customer.postalCode }} {{ customer.city }} {% if customer.country is not empty and showCountry is defined and showCountry == true %} - {{ customer.country|country(app.request.locale) }} {% endif %}
{{ customer.email }}
{% if customer.legalFormContact is not empty and showLegalFormContact is defined and showLegalFormContact == true %} {{ customer.legalFormContact }} {% endif %} {{ customer.corporateNameContact }}
{{ customer.address }} {{ customer.address2 }}
{{ customer.postalCode }} {{ customer.city }} {% if customer.country is not empty and showCountry is defined and showCountry == true %} - {{ customer.country|country(app.request.locale) }} {% endif %}
{{ customer.email }}