{% set alignCenter = '' %} {% if cssCustomerCenter is defined and cssCustomerCenter == true %} {% set alignCenter = 'align-center' %} {% endif %} {% if customer.discr == constant('AppBundle\\Entity\\Contact\\Contact::CONTACT_DISCR_INDIVIDUAL') %} {% if customer.lastName is not empty or customer.firstName is not empty %} {% if isClassicAutostore is not defined %} {% endif %} {% if isClassicAutostore is defined and isClassicAutostore == true %} {% endif %} {% endif %} {% if isClassicAutostore is not defined %} {% endif %} {% if customer.postalCode is not empty or customer.city is not empty %} {% endif %} {% if showCountry is defined and showCountry == true and customer.country is not empty %} {% endif %} {% else %} {% if isClassicAutostore is not defined %} {% endif %} {% if isClassicAutostore is defined and isClassicAutostore == true %} {% endif %} {% if isClassicAutostore is not defined %} {% endif %} {% if customer.postalCode is not empty or customer.city is not empty %} {% endif %} {% if showCountry is defined and showCountry == true and customer.country is not empty %} {% endif %} {% if customer.siret is not empty and notShowSiret is not defined %} {% endif %} {% if customer.tvaIntracom is not empty %} {% endif %} {% endif %} {% if numbers is defined and numbers == true %} {% else %} {% if customer.phoneNumber is not empty %} {% endif %} {% if customer.cellPhoneNumber is not empty %} {% endif %} {% endif %} {% if customer.email is not empty %} {% 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 %} {{ 'and'|trans({}, 'DocumentTrans' )}} {{ coCustomerQuick.civility|trans({}, 'CommonTrans') }} {% elseif coCustomer.civility is not empty and customer.lastName|upper == coCustomer.lastName|upper %} {{ 'and'|trans({}, 'DocumentTrans' )}} {{ 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 %} {{ 'and'|trans({}, 'DocumentTrans' )}} {{ coCustomerQuick.civity|trans({}, 'CommonTrans') }} {{ coCustomerQuick.lastName }} {{ coCustomerQuick.firstName }} {% elseif coCustomer.lastName is not empty and customer.lastName|upper != coCustomer.lastName|upper %} {{ 'and'|trans({}, 'DocumentTrans' )}} {{ 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 defined 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 defined and coCustomer.discr == constant('AppBundle\\Entity\\Contact\\Contact::CONTACT_DISCR_INDIVIDUAL') %} ou {{ coCustomer.civility|trans({}, 'CommonTrans') }} {{ coCustomer.lastName }} {{ coCustomer.firstName }} {% endif %} {% endif %} {% if customer.address is not empty or customer.address2 is not empty %} {{ customer.address }} {{ customer.address2 }} {% endif %}
{% if customer.address is not empty or customer.address2 is not empty %} {{ customer.address }} {{ customer.address2 }} {% endif %}
{{ customer.postalCode }} {% if customer.postalCode is not empty %} - {% endif %} {{ customer.city }}
{{ customer.country|country(app.request.locale) }}
{{ customer.corporateNameContact }} {% if customer.address is not empty or customer.address2 is not empty %} {{ customer.address }} {{ customer.address2 }} {% endif %}
{% if customer.address is not empty or customer.address2 is not empty %} {{ customer.address }} {{ customer.address2 }} {% endif %}
{{ customer.postalCode }} {% if customer.postalCode is not empty %} - {% endif %} {{ customer.city }}
{{ customer.country|country(app.request.locale) }}
SIRET : {{ customer.siret }}
TVA INTRA : {{ customer.tvaIntracom }}
{% if customer.phoneNumber is not empty %} Tél : {{- customer.phoneNumber -}} {% if customer.cellPhoneNumber is not empty %}-{% endif %} {% endif %} {% if customer.cellPhoneNumber is not empty %} Port : {{- customer.cellPhoneNumber -}} {% endif %}
Tél : {{- customer.phoneNumber -}}
Port : {{- customer.cellPhoneNumber -}}
Email : {{- customer.email -}}