{% extends 'AppBundle:Documents:v2\\Administrative\\G2_commercial_proposition.html.twig' %} {% set containerImgWidth = 375 %} {% set containerImgHeight = 275 %} {% set displayDiscount = false %} {% set classDiscount = 'w-48-1' %} {% if sellingData.prices.priceDiscount != 0 %} {% set displayDiscount = true %} {% set classDiscount = 'w-49' %} {% endif %} {% block style %} {{ parent() }} {% endblock %} {% block header %} {% include 'AppBundle:Documents:v2\\Override\\Trouillet\\Include\\header.html.twig' with { 'displaySeller': false } %} {% endblock header %} {% block main_title %}
{% if object.number is not empty %} {{ 'title.commercial_proposition'|trans({'%number%' : object.number}, 'DocumentTrans' )|upper }} {% endif %}
{% endblock main_title %} {% block signature %} {% endblock signature %} {% block content %}
{% if vehicleMediaList is defined and vehicleMediaList is not empty %} {% include 'AppBundle:Documents:v2\\Include\\Global\\image.html.twig' with { 'image': vehicleMediaList|first, 'containerImgWidth': containerImgWidth, 'containerImgHeight': containerImgHeight, } %} {% endif %}

{{ vehicleData.brand }}

{{ vehicleData.model }}

{{ vehicleData.version }}

{{ 'trouillet.customer.title'|trans({}, 'DocumentTrans') }}
{% if customer.discr == 'individual' %} {{ customer.firstName }} {{ customer.lastName }} {% else %} {{ customer.corporateNameContact }} {% endif %}
{{ customer.address }}
{{ customer.postalCode ~ ' ' ~ customer.city }}
{% include 'AppBundle:Documents:v2\\Override\\Trouillet\\Include\\title_content.html.twig' with {'title' : 'VEHICULE'} %}
{{ 'vehicle.type'|trans({}, 'DocumentTrans') }} {{ 'vehicle.brand'|trans({}, 'DocumentTrans') }} {{ 'vehicle.model'|trans({}, 'DocumentTrans') }} {{ 'vehicle.version'|trans({}, 'DocumentTrans') }}
{{ vehicleData.voVnType }} {{ vehicleData.brand }} {{ vehicleData.model }} {{ vehicleData.version }}
{{ 'vehicle.gender'|trans({}, 'DocumentTrans') }} {{ 'vehicle.energy'|trans({}, 'DocumentTrans') }} {{ 'vehicle.tax_horsepower_complet'|trans({}, 'DocumentTrans') }} {{ 'vehicle.serial_numbers'|trans({}, 'DocumentTrans') }}
{{ vehicleData.gender }} {{ vehicleData.energy }} {{ vehicleData.taxHorsepower }} {{ 'vehicle.tax_horsepower_suffix'|trans({}, 'DocumentTrans') }} {{ vehicleData.vin }}
{{ 'vehicle.date_distribution'|trans({}, 'DocumentTrans') }} {{ 'vehicle.color'|trans({}, 'DocumentTrans') }} {{ 'vehicle.license_number_complete'|trans({}, 'DocumentTrans') }} {{ 'vehicle.mileage_complete'|trans({}, 'DocumentTrans') }} {{ 'vehicle.warranty.no'|trans({}, 'DocumentTrans')|lower }}
{{ vehicleData.dateOfDistribution|date('d/m/Y') }} {{ vehicleDatahorsepower_suffix }} {{ vehicleData.color }} {{ vehicleData.licenseNumber }} {{ vehicleData.distanceTraveled }} {{ 'vehicle.mileage'|trans({}, 'DocumentTrans') }}
{% if originName %} {% endif %} {% if originName %} {% endif %}
{{ 'vehicle.horsepower_complet'|trans({}, 'DocumentTrans') }} {{ 'vehicle.mileage'|trans({}, 'DocumentTrans') }} {{ 'vehicle.origin'|trans({}, 'DocumentTrans') }} {{ 'vehicle.co2'|trans({}, 'DocumentTrans') }}
{{ vehicleData.horsepower }} {{ 'vehicle.horsepower_suffix'|trans({}, 'DocumentTrans') }} {{ originName }} {% if vehicleData.extraUrbanKmConsumption %} {{ vehicleData.extraUrbanKmConsumption }} {{ 'vehicle.extra_urban_km_consumption_suffix'|trans({}, 'DocumentTrans')|lower }} {% endif %}
{{ 'administrative.price_without_tax'|trans({}, 'DocumentTrans') }} {{ vehicleSellingData.priceWithoutTaxWithDiscount|number_format(2, ',', '') }} {{ currencySymbol }}
{{ 'administrative.price_with_tax'|trans({}, 'DocumentTrans') }} {{ vehicleSellingData.priceWithTax|number_format(2, ',', '') }} {{ currencySymbol }}
{% include 'AppBundle:Documents:v2\\Override\\Trouillet\\Include\\title_content.html.twig' with {'title' : 'PRIX ET PRESTATIONS' } %}
{% if displayDiscount %} {% endif %} {% if displayDiscount %} {% endif %} {% for serviceList in serviceListData %} {% for item in serviceList %} {% if displayDiscount %} {% endif %} {% endfor %} {% endfor %}
{{ 'service.reference_complet'|trans({}, 'DocumentTrans') }} {{ 'service.name'|trans({}, 'DocumentTrans') }} {{ 'service.price_unit_ht'|trans({}, 'DocumentTrans') }} {{ 'service.qte'|trans({}, 'DocumentTrans') }} {{ 'service.total_ht'|trans({}, 'DocumentTrans') }} {{ 'administrative.price_without_tax_discount'|trans({}, 'DocumentTrans') }} {{ 'administrative.total.price_without_tax_discount'|trans({}, 'DocumentTrans') }} {{ 'service.tva'|trans({}, 'DocumentTrans') }} {{ 'service.total_ttc'|trans({}, 'DocumentTrans') }}
{{ vehicleData.internalReference }} {{ vehicleData.brand ~' '~ vehicleData.model ~' '~ vehicleData.version }} {{ vehicleData.internalReference }} {{ vehicleSellingData.items[0].sellPriceWithoutTaxWithoutDiscount|number_format(2, ',', '') }} {{ currencySymbol }} {{ vehicleSellingData.items|length }} {{ vehicleSellingData.items[0].sellPriceWithoutTaxWithoutDiscount|number_format(2, ',', '') }} {{ currencySymbol }} {{ vehicleSellingData.items[0].priceDiscount|number_format(2, ',', '') }} {{ currencySymbol }} {{ vehicleSellingData.items[0].sellPriceWithoutTax|number_format(2, ',', '') }} {{ currencySymbol }} {{ vehicleSellingData.items[0].taxName|trans({}, 'DocumentTrans') }} {{ vehicleSellingData.items[0].sellPriceWithTax|number_format(2, ',', '') }} {{ currencySymbol }}
{{ item.reference }} {{ item.name }} {{ item.sellUnitPriceWithoutTax|number_format(2, ',', '') }} {{ currencySymbol }} {{ item.quantity }} {{ item.sellPriceWithoutTaxWithoutDiscount|number_format(2, ',', '') }} {{ currencySymbol }} {{ item.priceDiscount|number_format(2, ',', '') }} {{ currencySymbol }} {{ item.sellPriceWithoutTax|number_format(2, ',', '') }} {{ currencySymbol }} {{ item.sellTaxName|trans({}, 'DocumentTrans') }} {{ item.sellPriceWithTax|number_format(2, ',', '') }} {{ currencySymbol }}
{% if displayDiscount %} {% endif %}
{{ 'service.totaux'|trans({}, 'DocumentTrans') }} {{ totalsPriceWithoutTax|number_format(2, ',', '') }} {{ currencySymbol }} {{ totalsPriceDiscount|number_format(2, ',', '') }} {{ currencySymbol }} {{ invoiceBalanceWithoutTaxDiscount|number_format(2, ',', '') }} {{ currencySymbol }} {{ vehicleSellingData.items[0].sellTotalCollectedTax|number_format(2, ',', '') }} {{ currencySymbol }} {{ invoiceBalance|number_format(2, ',', '') }} {{ currencySymbol }}
{% set equipmentStandard = vehicleData.equipmentsType.option_standard %} {% if equipmentStandard|length > 0 %}
{% include 'AppBundle:Documents:v2\\Override\\Trouillet\\Include\\title_content.html.twig' with {'title' : 'EQUIPEMENTS DE SERIE'} %}
{% for item in equipmentStandard %} {% if loop.index0%2 == 0 %} {% if loop.index0 > 1 %}
{% endif %} {% endif %} {% endfor %}
- {{ item }}
{% endif %} {% set equipmentOptional = vehicleData.equipmentsType.option_optional %} {% if equipmentOptional|length > 0 %}
{% include 'AppBundle:Documents:v2\\Override\\Trouillet\\Include\\title_content.html.twig' with {'title' : 'EQUIPEMENTS EN OPTIONS INCLUS'} %}
{% for item in equipmentOptional %} {% if loop.index0%2 == 0 %} {% if loop.index0 > 1 %}
{% endif %} {% endif %} {% endfor %}
- {{ item }}
{% endif %} {% set additionalEquipments = vehicleData.additionalEquipments %} {% if additionalEquipments|length > 0 %}
{% include 'AppBundle:Documents:v2\\Override\\Trouillet\\Include\\title_content.html.twig' with {'title' : 'CARROSSERIE'} %}
{% for item in additionalEquipments %} {% if loop.index0%2 == 0 %} {% if loop.index0 > 1 %}
{% endif %} {% endif %} {% endfor %}
- {{ item }}
{% endif %} {% if vehicleMediaList is defined and vehicleMediaList is not empty %}
{% for image in vehicleMediaList %} {% if loop.index0%2 == 0 %} {% if loop.index0 > 1 %}
{% endif %} {% endif %} {% endfor %}
{% include 'AppBundle:Documents:v2\\Include\\Global\\image.html.twig' with { 'image': image, 'containerImgWidth': containerImgWidth, 'containerImgHeight': containerImgHeight } %}
{% endif %} {% endblock content %}