{% set alignCenter = '' %} {% if cssCustomerCenter is defined and cssCustomerCenter == true %} {% set alignCenter = 'align-center' %} {% 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 }} |