|
{% if vehicle.licenseNumber is not empty %}{{ vehicle.licenseNumber[:9] }}{% endif %} |
|
{% if vinList is not null %}
{% for vinCharacter in vinList %}
{{ vinCharacter }} |
{% 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.dateOfDistribution is not empty %}{{ vehicle.dateOfDistribution|localizeddate('none', 'none', null, timezone, 'dd') }}{% endif %} |
{% if vehicle.dateOfDistribution is not empty %}{{ vehicle.dateOfDistribution|localizeddate('none', 'none', null, timezone, 'MM') }}{% endif %} |
{% if vehicle.dateOfDistribution is not empty %}{{ vehicle.dateOfDistribution|localizeddate('none', 'none', null, timezone, '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|localizeddate('none', 'none', null, timezone, 'dd')}}{% endif %} |
{% if vehicle.certification.dateCertificationActualCertificate is not empty %}{{ vehicle.certification.dateCertificationActualCertificate|localizeddate('none', 'none', null, timezone, 'MM') }}{% endif %} |
{% if vehicle.certification.dateCertificationActualCertificate is not empty %}{{ vehicle.certification.dateCertificationActualCertificate|localizeddate('none', 'none', null, timezone, 'y') }}{% endif %} |
|
{% if isC4 is defined and isC4 == true %}
{% set isPhysicalPerson = false %}
{% set supplier = vehicle.purchase.newSupplier.contact %}
{% set supplierAddress = vehicle.purchase.newSupplier.addressHistory %}
{% 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 vehicleData.vehiclePurchase.purchaseDate is not empty %}
|
{% if vehicle.purchase is defined and vehicle.purchase is not empty %}{{vehicle.purchase.purchaseDate|localizeddate('none', 'none', null, timezone, 'dd')}}{% endif %} |
|
{% if vehicle.purchase is defined and vehicle.purchase is not empty %}{{vehicle.purchase.purchaseDate|localizeddate('none', 'none', null, timezone, 'MM')}}{% endif %} |
|
{% if vehicle.purchase is defined and vehicle.purchase is not empty %}{{vehicle.purchase.purchaseDate|localizeddate('none', 'none', null, timezone, 'y')}}{% endif %} |
|
{% if vehicle.purchase is defined and vehicle.purchase is not empty %}{{vehicle.purchase.purchaseDate|localizeddate('none', 'none', null, timezone, 'HH')}}{% endif %} |
|
{% if vehicle.purchase is defined and vehicle.purchase is not empty %}{{vehicle.purchase.purchaseDate|localizeddate('none', 'none', null, timezone, 'mm')}}{% endif %} |
|
{% endif %}
|
{{ certificationPlace }} |
|
{{ certificationDate ? certificationDate|localizeddate('none', 'none', null, timezone, 'dd/MM/YYYY') }} |
|
|
{{ name }} |
|
{{ siret[:14] }} |
|
|
{{ postalCode }} |
|
{{ city }} |
|
|
{{ certificationPlace }} |
|
{{ certificationDate ? certificationDate|localizeddate('none', 'none', null, timezone, 'dd/MM/y') }} |
|
|
|
{% if group.idGroupParameter.stamp is not empty and vehicle.certification.isBetweenIndividuals == false %}
{% set image = group.idGroupParameter.stamp %}
{% set containerImgWidth = stampWidth is defined ? stampWidth : 550 %}
{% set containerImgHeight = stampHeight is defined ? stampHeight : 200 %}
{% set containerClass = 'img-stamp-buy' %}
{% include TEMPLATE_IMAGE %}
{% endif %}
|
{% else %}
{% if isOldOwnerPhysic == true %}
|
|
{% if oldOwnerGender == 'contact.civility.mister' %}
|
|
{% endif %}
{% if oldOwnerGender == 'contact.civility.madam' %}
|
|
{% endif %}
|
{% else %}
{% endif %}
|
{{ supplier.contactName }} |
|
{{ supplier.siretNumber }} |
|
|
{{ supplier.postalCode }} |
|
{{ supplier.city }} |
|
|
{% if vehicle.certification.saleDate is not empty %}{{ vehicle.certification.saleDate|localizeddate('none', 'none', null, timezone, 'dd')}}{% endif %} |
|
{% if vehicle.certification.saleDate is not empty %}{{ vehicle.certification.saleDate|localizeddate('none', 'none', null, timezone, 'MM')}}{% endif %} |
|
{% if vehicle.certification.saleDate is not empty %}{{ vehicle.certification.saleDate|localizeddate('none', 'none', null, timezone, 'y')}}{% endif %} |
|
{% if vehicle.certification.saleDate is not empty %}{{ vehicle.certification.saleDate|localizeddate('none', 'none', null, timezone, 'HH')}}{% endif %} |
|
{% if vehicle.certification.saleDate is not empty %}{{ vehicle.certification.saleDate|localizeddate('none', 'none', null, timezone, 'mm')}}{% endif %} |
|
|
{{ certificationPlace }} |
|
{{ certificationDate ? certificationDate|localizeddate('none', 'none', null, timezone, 'dd/MM/y')}} |
|
|
|
{% set isPhysicalPerson = false %}
{% set owner = vehicle.certification.newOwner.contact %}
{% set ownerAddress = vehicle.certification.newOwner.addressHistory %}
{% if owner|instanceof('AppBundle\\Entity\\Contact\\ContactIndividual') %}
{% set isPhysicalPerson = true %}
{% endif %}
|
{% if isPhysicalPerson %}{% endif %} |
|
{% if isPhysicalPerson and owner.civility is not empty and owner.civility == 'contact.civility.mister' %}{% endif %} |
|
{% if isPhysicalPerson and owner.civility is not empty and owner.civility == 'contact.civility.madam' %}{% endif %} |
|
|
|
|
|
|
|
|
|
{% if isPhysicalPerson == false %}{% endif %} |
|
|
|
|
|
{% if vehicle.purchase.isDepositSale == false and group.idGroupParameter.stamp is not empty and vehicle.certification.isBetweenIndividuals == false %}
{% set image = group.idGroupParameter.stamp %}
{% set containerImgWidth = stampWidth is defined ? stampWidth : 550 %}
{% set containerImgHeight = stampHeight is defined ? stampHeight : 200 %}
{% set containerClass = 'stamp-sell' %}
{% include TEMPLATE_IMAGE %}
{% endif %}
|
|
{% if owner is not empty and owner|instanceof('AppBundle\\Entity\\Contact\\ContactIndividual') %}
{% if owner.driver.birthName is defined and owner.driver.birthName is not empty %}
{{ owner.driver.birthName }},
{% endif %}
{% if owner.lastname is defined %}
{{ owner.lastname }}
{% endif %}
{% if owner.firstname is defined %}
{{ owner.firstname }}
{% endif %}
{% if vehicle.certification.coholderQuick is not empty %}
{% set coHolderQuick = vehicle.certification.coholderQuick %}
{% if coHolderQuick.lastname is defined or coHolderQuick.corporateNameContact is defined %}
ET
{% endif %}
{% if coHolderQuick|instanceof('AppBundle\\Entity\\Contact\\ContactQuick\\ContactQuickIndividual') %}
{% if coHolderQuick.lastname is defined %}
{{ coHolderQuick.lastname }}
{% endif %}
{% if coHolderQuick.firstname is defined %}
{{ coHolderQuick.firstname }}
{% endif %}
{% else %}
{% if coHolderQuick.corporateNameContact is defined %}
{{ coHolderQuick.corporateNameContact }}
{% endif %}
{% endif %}
{% else %}
{% set coHolder = vehicle.certification.newCoHolder.contact %}
{% if coHolder.lastname is defined or coHolder.corporateNameContact is defined %}
ET
{% endif %}
{% if coHolder|instanceof('AppBundle\\Entity\\Contact\\ContactIndividual') %}
{% if coHolder.driver.birthName is defined and coHolder.driver.birthName is not empty %}{{ coHolder.driver.birthName }}{% else %}{% if coHolder.lastname is defined %}{{ coHolder.lastname }}{% endif %}{% endif %} {% if coHolder.firstname is defined %}{{ coHolder.firstname }}{% endif %}
{% else %}
{% if coHolder.corporateNameContact is defined %}
{{ coHolder.corporateNameContact }}
{% endif %}
{% endif %}
{% endif %}
{% else %}
{% if owner is not empty and owner.corporateNameContact is defined %}
{{ owner.corporateNameContact }}
{% endif %}
{% endif %}
|
|
{% if owner is not empty and (not owner|instanceof('AppBundle\\Entity\\Contact\\ContactIndividual')) and owner.siret is not empty %}
{{ owner.siret[:14] }}
{% endif %}
|
|
{% set showBirthInfo = false %}
{% if isPhysicalPerson and owner.driver.birthDate is not empty %}
{% set showBirthInfo = true %}
{% endif %}
|
{% if showBirthInfo %}{{ owner.driver.birthDate|localizeddate('none', 'none', null, timezone, 'dd') }}{% endif %} |
|
{% if showBirthInfo %}{{ owner.driver.birthDate|localizeddate('none', 'none', null, timezone, 'MM') }}{% endif %} |
|
{% if showBirthInfo %}{{ owner.driver.birthDate|localizeddate('none', 'none', null, timezone, 'y') }}{% endif %} |
|
{% if isPhysicalPerson and owner.driver.birthPlace is not empty %}{{ owner.driver.birthPlace }}{% endif %} |
|
|
{% if owner is not empty and ownerAddress is not empty %}{{ ownerAddress.address }}{% endif %} |
|
|
{% if owner is not empty and ownerAddress.postalCode is not empty %}{{ ownerAddress.postalCode|replace({' ': ''}) }}{% endif %} |
|
{% if owner is not empty and ownerAddress.city is not empty %}{{ ownerAddress.city }}{% endif %} |
|
|
{{ certificationPlace }} |
|
{{ certificationDate ? certificationDate|localizeddate('none', 'none', null, timezone, 'dd/MM/YYYY') }} |
|
{% endif %}
|