{% include INIT_VARIABLES %} {# params #} {% set group = group %} {% include FOOTER f 30 50 %} {% include TEMPLATE_CSS_PORTRAIT %}
LETTRE DE CHANGE - LCR -
{% set c = customerData %} {% set indContact = c.customer_contact_object|instanceof('AppBundle\\Entity\\Contact\\ContactIndividual') %} {% set proContact = c.customer_contact_object|instanceof('AppBundle\\Entity\\Contact\\ContactProfessional') %} {% set groupContact = c.customer_contact_object|instanceof('AppBundle\\Entity\\Contact\\ContactGroup') %} {% if indContact %}

{{ c.customer_contact_object.firstname }} {{ c.customer_contact_object.lastname }}

{% elseif proContact or groupContact %}

{{ c.customer_contact_object.corporateNameContact }}

{% endif %} {% if vehicle is defined %}

BC {% if object.orderForm is defined %} {{ object.orderForm.number }} {% else %} {{ object.number }} {% endif %} {% if displayLicenseNumber is not defined or (displayLicenseNumber is defined and displayLicenseNumber == true) %} ‹‹ {{ vehicle.licenseNumber }} ›› {% endif %} {% if displayBrand is defined and displayBrand == true %} {% if vehicleSelling is defined and vehicleSelling.vehicle.brand is not empty %} {{ vehicleSelling.vehicle.brand }} {% elseif vehicle.brand is not empty %} {{ vehicle.brand }} {% endif %} {% endif %} {% if displayModel is defined and displayModel == true %} {% if vehicleSelling is defined and vehicleSelling.vehicle.model is not empty %} {{ vehicleSelling.vehicle.model }} {% elseif vehicle.model is not empty %} {{ vehicle.model }} {% endif %} {% endif %} {% if displayInternalReference is defined and displayInternalReference == true %} {% if vehicleSelling is defined and vehicleSelling.vehicle.internalReference is not empty %} {{ vehicleSelling.vehicle.internalReference }} {% elseif vehicle.internalReference is not empty %} {{ vehicle.internalReference }} {% endif %} {% endif %}

{% endif %}

Toute l'équipe {% if group.commonName is not empty %}  {{ group.commonName }} {% elseif group.corporateName is not empty %}  {{ group.corporateName }} {% endif %} vous remercie pour votre commande.

Au bas de cette page vous trouverez votre L.C.R pré-remplie.

{% if displaySentence is not defined or (displaySentence is defined and displaySentence == false) %}

Vous n'avez plus qu'à la signer, la plier, la glisser dans une enveloppe et nous l'envoyer.

{% endif %}

Nous vous remercions de votre fidélité.

Bonnes ventes.

{% set groupEltsNb = groupEltsNb + 1 %} {% endif %} {% if group.addressBilling.address is not empty %} {% set groupEltsNb = groupEltsNb + 1 %} {% endif %} {% if group.phoneNumber is not empty %} {% set groupEltsNb = groupEltsNb + 1 %} {% endif %} {% if group.siretNumber is not empty %} {% set groupEltsNb = groupEltsNb + 1 %} {% endif %} {% if group.vatNumber is not empty %} {% set groupEltsNb = groupEltsNb + 1 %} {% endif %} {% set eltsNb = groupEltsMaxNb - groupEltsNb %} {% if eltsNb > 0 %} {% for i in 0..(eltsNb - 1) %} {% endfor %} {% endif %}
{% set groupEltsMaxNb = 5 %} {% set groupEltsNb = 0 %} {% if group.commonName is not empty %}
{{ group.commonName }}
{{ group.addressBilling.address }} - {{ group.addressBilling.postalCode }} - {{ group.addressBilling.city }}
{{ 'phone_number'|trans({}, 'DocumentTrans' )}} : {{ group.phoneNumber }}
{{ 'group.siret'|trans({}, 'DocumentTrans' )}} : {{ group.siretNumber }}
{{ 'group.vat'|trans({}, 'DocumentTrans' )}} : {{ group.vatNumber }}
 
{{ group.addressBilling.city }}
{% if payment.amount is defined %} {{ payment.amount|number_format(2, ',', ' ') }} {% endif %} {% if payment.creationDate is not empty %} {{ payment.creationDate|date('d/m/Y')}} {% endif %} {% if payment.termDate is not empty %} {{ payment.termDate|date('d/m/Y')}} {% endif %} {% if payment.amount is defined %} {{ payment.amount|number_format(2, ',', ' ') }} {% endif %}
{% if c.rib_customer is not null %} {{ c.rib_customer['etabCode'] }} {% endif %} {% if c.rib_customer is not null %} {{ c.rib_customer['ticketOfficeCode'] }} {% endif %} {% if c.rib_customer is not null %} {{ c.rib_customer['ribKey'] }} {% endif %} {% if c.bank_customer_data is not null %} {{ c.bank_customer_data.bankDomiciliation }} {% endif %}
{% if indContact %} {{ c.customer_contact_object.firstname }} {{ c.customer_contact_object.lastname }} {% elseif proContact or groupContact %} {{ c.customer_contact_object.corporateNameContact }} {% endif %}
{% if indContact or proContact %} {{ c.customer_object.addressHistory.address }} {% elseif groupContact %} {{ c.customer_contact_object.associatedGroup.addressBilling.address }} {% endif %}
{% if indContact or proContact %} {{ c.customer_object.addressHistory.postalCode }} {{ c.customer_object.addressHistory.city }} {% elseif groupContact %} {{ c.customer_contact_object.associatedGroup.addressBilling.postalCode }} {{ c.customer_contact_object.associatedGroup.addressBilling.city }} {% endif %}
{% if displayGroupStamp is defined and displayGroupStamp == true %}
{% if group.idGroupParameter.stamp is not empty %} {% set image = group.idGroupParameter.stamp %} {% set containerImgWidth = 140 %} {% set containerImgHeight = 80 %} {% include TEMPLATE_IMAGE %} {% endif %}
{% endif %}