{% 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 %} {% endif %} {% if customer.address is not empty %} {% endif %} {% if customer.address2 is not empty %} {% 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 %} {# not show email for profesionnal #} {% set notShowEmail = true %} {% if customer.corporateNameContact is not empty %} {% endif %} {% if notShowAddress is not defined %} {% if customer.address is not empty %} {% endif %} {% if customer.address2 is not empty %} {% endif %} {% if customer.postalCode is not empty or customer.city is not empty %} {% endif %} {% 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 isTvaIntracomAtBottom is not defined and customer.tvaIntracom is not empty and notShowTvaIntracom is not defined %} {% endif %} {% if customer.email is not empty and showEmail == true and displayEmail is defined and displayEmail == true %} {% endif %} {% endif %} {% if notShowTel is not defined %} {% if numbers is defined and numbers == true %} {% else %} {% if customer.phoneNumber is not empty %} {% endif %} {% if customer.cellPhoneNumber is not empty %} {% endif %} {% endif %} {% endif %} {% if customer.email is not empty and notShowEmail is not defined %} {% endif %} {% if isTvaIntracomAtBottom is defined and isTvaIntracomAtBottom == true %} {% if customer.tvaIntracom is not empty %} {% endif %} {% endif %}
{% if isSpouse is defined and isSpouse == true and isLoaner == false %} {# 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.civility|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 isLoaner is defined and isLoaner == false %} {% if coCustomerQuick.lastName is not empty and coCustomerQuick.discr == constant('AppBundle\\Entity\\Contact\\ContactQuick\\ContactQuickBase::CONTACT_DISCR_INDIVIDUAL') %} {{ 'or'|trans({}, 'DocumentTrans' )}} {{ 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') %} {{ 'or'|trans({}, 'DocumentTrans' )}} {{ coCustomer.civility|trans({}, 'CommonTrans') }} {{ coCustomer.lastName }} {{ coCustomer.firstName }} {% endif %} {% endif %} {% endif %}
{{ customer.address }}
{{ customer.address2 }}
{{ customer.postalCode }} {% if customer.postalCode is not empty %} - {% endif %} {{ customer.city }}
{{ countries[customer.country] }}
{% if customer.legalFormContact is not empty and showLegalFormContact is defined and showLegalFormContact == true %} {{ customer.legalFormContact }} {% endif %} {{ customer.corporateNameContact }}
{{ customer.address }}
{{ customer.address2 }}
{{ customer.postalCode }} {% if customer.postalCode is not empty %} - {% endif %} {{ customer.city }}
{{ countries[customer.country] }}
{{ 'group.siret'|trans({}, 'DocumentTrans' )}} : {{ customer.siret }}
{{ 'group.vat'|trans({}, 'DocumentTrans' )}} : {{ customer.tvaIntracom }}
{{ 'group.email'|trans({}, 'DocumentTrans' )}} : {{ customer.email }}
{% if customer.phoneNumber is not empty %} {{ 'phone_number'|trans({}, 'DocumentTrans' )}} : {{- customer.phoneNumber -}} {% if customer.cellPhoneNumber is not empty %}-{% endif %} {% endif %} {% if customer.cellPhoneNumber is not empty %} {{ 'cellphone_number'|trans({}, 'DocumentTrans' )}} : {{- customer.cellPhoneNumber -}} {% endif %} {% if showEmailAfterCellPhone is defined and showEmailAfterCellPhone == true %} {% if customer.cellPhoneNumber is not empty or customer.phoneNumber %}-{% endif %} {{ 'email'|trans({}, 'DocumentTrans' )}} : {{- customer.email -}} {% endif %}
{{ 'phone_number'|trans({}, 'DocumentTrans' )}} : {{- customer.phoneNumber -}}
{{ 'cellphone_number'|trans({}, 'DocumentTrans' )}} : {{- customer.cellPhoneNumber -}}
{{ 'email'|trans({}, 'DocumentTrans' )}} : {{- customer.email -}}
{{ 'group.vat'|trans({}, 'DocumentTrans' )}} : {{ customer.tvaIntracom }}