{% include INIT_VARIABLES %} {% include TEMPLATE_CSS_CERFA %} {% set vinList = null %} {% if vehicle.vin is not empty %} {% set vinList = vehicle.vin[:17]|split('') %} {% endif %}
{% if vinList is not null %} {% for vinCharacter in vinList %} {% endfor %} {% if vinList|length < 17 %} {% set toFillTheBlank = 17 - vinList|length %} {% for i in 1..toFillTheBlank %} {% endfor %} {% endif %} {% else %} {% for i in 1..17 %} {% endfor %} {% endif %}
{% if vehicle.licenseNumber is not empty %}{{ vehicle.licenseNumber[:9] }}{% endif %} {{ vinCharacter }} {% if vehicle.dateOfDistribution is not empty %}{{ vehicle.dateOfDistribution|date('d') }}{% endif %} {% if vehicle.dateOfDistribution is not empty %}{{ vehicle.dateOfDistribution|date('m') }}{% endif %} {% if vehicle.dateOfDistribution is not empty %}{{ vehicle.dateOfDistribution|date('Y') }}{% endif %}
{% if vehicle.brand is not empty %}{{ vehicle.brand }}{% endif %} {% if vehicle.certification.type is not empty %}{{ vehicle.certification.type }}{% endif %} {% if vehicle.gender is not empty %}{{ vehicle.gender }}{% endif %} {% if vehicle.model is not empty %}{{ vehicle.model }}{% endif %}
{% if vehicle.distanceTraveled is not empty %}{{ vehicle.distanceTraveled[:6] }}{% endif %}
{% if vehicle.certification.hasRegistrationCertificate == true %}
{% endif %}
{% if vehicle.certification.hasRegistrationCertificate == true and vehicle.certification.certificationNumber is not empty and (vehicle.certification.dateCertificationActualCertificate is not empty or vehicle.certification.dateCertificationActualCertificate is empty) %} {{ vehicle.certification.certificationNumber[2:9] }} {% endif %} {% if vehicle.certification.hasRegistrationCertificate == false %}
{% endif %}
{% if vehicle.certification.dateCertificationActualCertificate is not empty %}{{vehicle.certification.dateCertificationActualCertificate|date('d')}}{% endif %} {% if vehicle.certification.dateCertificationActualCertificate is not empty %}{{ vehicle.certification.dateCertificationActualCertificate|date('m') }}{% endif %} {% if vehicle.certification.dateCertificationActualCertificate is not empty %}{{ vehicle.certification.dateCertificationActualCertificate|date('Y') }}{% endif %}
{% set supplier = vehicle.purchase.newSupplier.contact %} {% set supplierAddress = vehicle.purchase.newSupplier.addressHistory %} {% set isPhysicalPerson = false %} {% if supplier|instanceof('AppBundle\\Entity\\Contact\\ContactIndividual') %} {% set isPhysicalPerson = true %} {% endif %}
{% if isPhysicalPerson %}
{% endif %}
{% if isPhysicalPerson and supplier.civility is not empty and supplier.civility == 'contact.civility.mister' %}
{% endif %}
{% if isPhysicalPerson and supplier.civility is not empty and supplier.civility == 'contact.civility.madam' %}
{% endif %}
{% if isPhysicalPerson == false %}
{% endif %}
{% if supplier|instanceof('AppBundle\\Entity\\Contact\\ContactIndividual') %} {% if supplier.driver.birthName is defined and supplier.driver.birthName is not empty %} {{ supplier.driver.birthName }}, {% endif %} {% if supplier.lastname is defined %} {{ supplier.lastname }} {% endif %} {% if supplier.firstname is defined %} {{ supplier.firstname }} {% endif %} {% else %} {% if supplier.corporateNameContact is defined %}{{ supplier.corporateNameContact }}{% endif %} {% endif %} {% if supplier.siret is defined %}{{ supplier.siret[:14] }}{% endif %}
{% if supplierAddress.address is defined %}{{ supplierAddress.address }}{% endif %}
{% if supplierAddress.postalCode is defined %}{{ supplierAddress.postalCode|replace({' ': ''}) }}{% endif %} {% if supplierAddress.city is defined %}{{ supplierAddress.city }}{% endif %}
{% if vehicle.purchase is defined and vehicle.purchase is not empty %}{{vehicle.purchase.purchaseDate|date('d')}}{% endif %} {% if vehicle.purchase is defined and vehicle.purchase is not empty %}{{vehicle.purchase.purchaseDate|date('m')}}{% endif %} {% if vehicle.purchase is defined and vehicle.purchase is not empty %}{{vehicle.purchase.purchaseDate|date('Y')}}{% endif %} {% if vehicle.purchase is defined and vehicle.purchase is not empty %}{{vehicle.purchase.purchaseDate|date('H')}}{% endif %} {% if vehicle.purchase is defined and vehicle.purchase is not empty %}{{vehicle.purchase.purchaseDate|date('i')}}{% endif %}
{% if supplier is defined and supplierAddress is not empty and supplierAddress.city is not empty %}{{ supplierAddress.city }}{% endif %} {% if vehicle.purchase is defined and vehicle.purchase is not empty %}{{vehicle.purchase.purchaseDate|date('d/m/Y')}}{% endif %}
{% if group.corporateName is not empty %}{{ group.corporateName }}{% endif %} {% if group.siretNumber is not empty %}{{ group.siretNumber[:14] }}{% endif %}
{% if group.addressSellingPoint.address is not empty %}{{ group.addressSellingPoint.address }}{% endif %}
{% if group.addressSellingPoint.postalCode is not empty %}{{ group.addressSellingPoint.postalCode|replace({' ': ''}) }}{% endif %} {% if group.addressSellingPoint.city is not empty %}{{ group.addressSellingPoint.city }}{% endif %}
{% if group.addressSellingPoint.city is not empty %}{{ group.addressSellingPoint.city }}{% endif %} {% if vehicle.purchase is defined and vehicle.purchase is not empty %}{{vehicle.purchase.purchaseDate|date('d/m/Y')}}{% endif %}
{% if vinList is not null %} {% for vinCharacter in vinList %} {% endfor %} {% if vinList|length < 17 %} {% set toFillTheBlank = 17 - vinList|length %} {% for i in 1..toFillTheBlank %} {% endfor %} {% endif %} {% else %} {% for i in 1..17 %} {% endfor %} {% endif %}
{% if vehicle.licenseNumber is not empty %}{{ vehicle.licenseNumber[:9] }}{% endif %} {{ vinCharacter }} {% if vehicle.dateOfDistribution is not empty %}{{ vehicle.dateOfDistribution|date('d') }}{% endif %} {% if vehicle.dateOfDistribution is not empty %}{{ vehicle.dateOfDistribution|date('m') }}{% endif %} {% if vehicle.dateOfDistribution is not empty %}{{ vehicle.dateOfDistribution|date('Y') }}{% endif %}
{% if vehicle.brand is not empty %}{{ vehicle.brand }}{% endif %} {% if vehicle.certification.type is not empty %}{{ vehicle.certification.type }}{% endif %} {% if vehicle.gender is not empty %}{{ vehicle.gender }}{% endif %} {% if vehicle.model is not empty %}{{ vehicle.model }}{% endif %}
{% if vehicle.distanceTraveled is not empty %}{{ vehicle.distanceTraveled[:6] }}{% endif %}
{% if vehicle.certification.hasRegistrationCertificate == true %}
{% endif %}
{% if vehicle.certification.hasRegistrationCertificate == true and vehicle.certification.certificationNumber is not empty and (vehicle.certification.dateCertificationActualCertificate is not empty or vehicle.certification.dateCertificationActualCertificate is empty) %} {{ vehicle.certification.certificationNumber[2:9] }} {% endif %} {% if vehicle.certification.hasRegistrationCertificate == false %}
{% endif %}
{% if vehicle.certification.dateCertificationActualCertificate is not empty %}{{vehicle.certification.dateCertificationActualCertificate|date('d')}}{% endif %} {% if vehicle.certification.dateCertificationActualCertificate is not empty %}{{ vehicle.certification.dateCertificationActualCertificate|date('m') }}{% endif %} {% if vehicle.certification.dateCertificationActualCertificate is not empty %}{{ vehicle.certification.dateCertificationActualCertificate|date('Y') }}{% endif %}
{% set isPhysicalPerson = false %} {% if supplier|instanceof('AppBundle\\Entity\\Contact\\ContactIndividual') %} {% set isPhysicalPerson = true %} {% endif %}
{% if isPhysicalPerson %}
{% endif %}
{% if isPhysicalPerson and supplier.civility is not empty and supplier.civility == 'contact.civility.mister' %}
{% endif %}
{% if isPhysicalPerson and supplier.civility is not empty and supplier.civility == 'contact.civility.madam' %}
{% endif %}
{% if isPhysicalPerson == false %}
{% endif %}
{% if supplier|instanceof('AppBundle\\Entity\\Contact\\ContactIndividual') %} {% if supplier.driver.birthName is defined and supplier.driver.birthName is not empty %} {{ supplier.driver.birthName }}, {% endif %} {% if supplier.lastname is defined %} {{ supplier.lastname }} {% endif %} {% if supplier.firstname is defined %} {{ supplier.firstname }} {% endif %} {% else %} {% if supplier is not empty and supplier.corporateNameContact is defined %}{{ supplier.corporateNameContact }}{% endif %} {% endif %} {% if supplier is not empty and supplier.siret is defined %}{{ supplier.siret[:14] }}{% endif %}
{% if supplier is not empty and supplierAddress is not empty and supplierAddress.address is defined %}{{ supplierAddress.address }}{% endif %}
{% if supplier is not empty and supplierAddress is not empty and supplierAddress.postalCode is defined %}{{ supplierAddress.postalCode|replace({' ': ''}) }}{% endif %} {% if supplier is not empty and supplierAddress is not empty and supplierAddress.city is defined %}{{ supplierAddress.city }}{% endif %}
{% if vehicle.purchase is defined and vehicle.purchase is not empty %}{{vehicle.purchase.purchaseDate|date('d')}}{% endif %} {% if vehicle.purchase is defined and vehicle.purchase is not empty %}{{vehicle.purchase.purchaseDate|date('m')}}{% endif %} {% if vehicle.purchase is defined and vehicle.purchase is not empty %}{{vehicle.purchase.purchaseDate|date('Y')}}{% endif %} {% if vehicle.purchase is defined and vehicle.purchase is not empty %}{{vehicle.purchase.purchaseDate|date('H')}}{% endif %} {% if vehicle.purchase is defined and vehicle.purchase is not empty %}{{vehicle.purchase.purchaseDate|date('i')}}{% endif %}
{% if supplier is defined and supplierAddress is not empty and supplierAddress.city is not empty %}{{ supplierAddress.city }}{% endif %} {% if vehicle.purchase is defined and vehicle.purchase is not empty %}{{vehicle.purchase.purchaseDate|date('d/m/Y')}}{% endif %}
{% if group.corporateName is not empty %}{{ group.corporateName }}{% endif %} {% if group.siretNumber is not empty %}{{ group.siretNumber[:14] }}{% endif %}
{% if group.addressSellingPoint.address is not empty %}{{ group.addressSellingPoint.address }}{% endif %}
{% if group.addressSellingPoint.postalCode is not empty %}{{ group.addressSellingPoint.postalCode|replace({' ': ''}) }}{% endif %} {% if group.addressSellingPoint.city is not empty %}{{ group.addressSellingPoint.city }}{% endif %}
{% if group.addressSellingPoint.city is not empty %}{{ group.addressSellingPoint.city }}{% endif %} {% if vehicle.purchase is defined and vehicle.purchase is not empty %}{{vehicle.purchase.purchaseDate|date('d/m/Y')}}{% endif %}