{% set displayDiscount = sellingData.prices.priceDiscount != 0 %} {% set hasExchange = sellingData.partExchangePurchase is defined and sellingData.partExchangePurchase.vehicleData is not empty and sellingData.partExchangePurchase.vehicleData.id is not empty %} {% set vehiclePartExchange = sellingData.partExchangePurchase %} {% set vehicleSellingType %} {% if isVN == true %} {{ 'vehicle.selling.new'|trans({}, 'DocumentTrans' )}} {% else %} {{ 'vehicle.selling.used'|trans({}, 'DocumentTrans' )}} {% endif %} {% endset %} {% set sellPriceWithoutTaxWithoutDiscountExclPartExch = sellingData.prices.sellPriceWithoutTaxWithoutDiscountExclPartExch %} {% set priceDiscountExclPartExch = sellingData.prices.priceDiscountExclPartExch %} {% set sellPriceWithoutTaxWithDiscountExclPartExch = sellingData.prices.sellPriceWithoutTaxWithDiscountExclPartExch %} {% set sellTotalTaxExclPartExch = sellingData.prices.sellTotalTaxExclPartExch %} {% set sellPriceWithTaxExclPartExch = sellingData.prices.sellPriceWithTaxExclPartExch %} {% if withoutVehicle == true %} {% set sellingData = sellingData|merge({'vehicleSellings':null}) %} {% set sellPriceWithoutTaxWithoutDiscountExclPartExch = sellingData.prices.services.sellPriceWithoutTaxWithoutDiscount %} {% set priceDiscountExclPartExch = sellingData.prices.services.priceDiscount %} {% set sellPriceWithoutTaxWithDiscountExclPartExch = sellingData.prices.services.sellPriceWithoutTaxWithDiscount %} {% set sellTotalTaxExclPartExch = sellingData.prices.services.sellTotalCollectedTaxWithoutTvaMerge %} {% set sellPriceWithTaxExclPartExch = sellingData.prices.services.sellPriceWithTax %} {% endif %}
{% include 'AppBundle:Documents:v2\\Include\\Global\\title_content.html.twig' with { 'title' : block_title|trans({}, 'DocumentTrans') } %}
{% if displayDiscount == true %} {% endif %} {% if notShowColumnTaxAndTotalWithTax == false %} {% endif %} {% if sellingData.vehicleSellings is not empty %} {% set vehicleSelling = sellingData.vehicleSellings[0] %} {% if displayDiscount == true %} {% endif %} {% if notShowColumnTaxAndTotalWithTax == false %} {% endif %} {% endif %} {% if hasExchange == true %} {% if displayDiscount == true %} {% endif %} {% if notShowColumnTaxAndTotalWithTax == false %} {% endif %} {% endif %} {% set serviceList = sellingData.serviceSellings is defined ? sellingData.serviceSellings : '' %} {% for serviceSelling in serviceList %} {% if displayDiscount == true %} {% endif %} {% if notShowColumnTaxAndTotalWithTax == false %} {% endif %} {% if serviceSelling.serviceArticleSellingList|length > 0 %} {% for serviceFlatRateSelling in serviceSelling.serviceArticleSellingList %} {% if displayDiscount == true %} {% endif %} {% if notShowColumnTaxAndTotalWithTax == false %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% if displayDiscount == true %} {% endif %} {% if notShowColumnTaxAndTotalWithTax == false %} {% endif %}

{{ 'service.reference'|trans({}, 'DocumentTrans' )}}

{{ 'service.name'|trans({}, 'DocumentTrans' )}}

{{ 'administrative.unit_price'|trans({}, 'DocumentTrans' )}}

{{ 'administrative.quantity'|trans({}, 'DocumentTrans' )}}

{{ 'administrative.total.price_without_tax'|trans({}, 'DocumentTrans' )}}

{{ 'administrative.price_without_tax_discount'|trans({}, 'DocumentTrans' )}}

{{ 'administrative.total.price_without_tax_discount'|trans({}, 'DocumentTrans' )}}

{{ 'administrative.tax'|trans({}, 'DocumentTrans' )}}

{{ 'administrative.total.price_with_tax'|trans({}, 'DocumentTrans' )}}

{{ vehicleData.reference }}

{{ 'vehicle.selling.title'|trans({'%type%' : vehicleSellingType}, 'DocumentTrans' )}}

{{ vehicleSelling.sellPriceWithoutTaxWithoutDiscount|number_format(2, ',', ' ') }} {{ currencySymbol }}

1

{{ vehicleSelling.sellPriceWithoutTaxWithoutDiscount|number_format(2, ',', ' ') }} {{ currencySymbol }}

{% if vehicleSelling.priceDiscount != 0 %} - {% endif %} {{ vehicleSelling.priceDiscount|number_format(2, ',', ' ') }} {{ currencySymbol }}

{{ vehicleSelling.sellPriceWithoutTax|number_format(2, ',', ' ') }} {{ currencySymbol }}

{% if vehicleSelling.taxName is defined %} {{ vehicleSelling.taxName|trans({}, 'DocumentTrans') }} {% else %} {{ 'tax.name.neutral'|trans({}, 'DocumentTrans') }} {% endif %}

{{ vehicleSelling.sellPriceWithTax|number_format(2, ',', ' ') }} {{ currencySymbol }}

{{ vehiclePartExchange.vehicleData.reference }}

{{ 'vehicle.part_exchange.sub_title'|trans({}, 'DocumentTrans' )}}

- {{ vehiclePartExchange.priceWithoutTax|number_format(2, ',', ' ') }} {{ currencySymbol }}

1

- {{ vehiclePartExchange.priceWithoutTax|number_format(2, ',', ' ') }} {{ currencySymbol }}

0,00 {{ currencySymbol }}

- {{ vehiclePartExchange.priceWithoutTax|number_format(2, ',', ' ') }} {{ currencySymbol }}

{{ vehiclePartExchange.taxName|trans({}, 'DocumentTrans') }}

- {{ vehiclePartExchange.priceWithTax|number_format(2, ',', ' ') }} {{ currencySymbol }}

{{ serviceSelling.reference }}

{{ serviceSelling.name }}

{{ serviceSelling.sellUnitPriceWithoutTax|number_format(2, ',', ' ') }} {{ currencySymbol }}

{{ serviceSelling.quantity|replace({'-': '- '}) }}

{{ serviceSelling.sellPriceWithoutTaxWithoutDiscount|number_format(2, ',', ' ')|replace({'-': '- '}) }} {{ currencySymbol }}

{% if serviceSelling.priceDiscount != 0 %} - {% endif %} {{ serviceSelling.priceDiscount|number_format(2, ',', ' ')|replace({'-': '- '}) }} {{ currencySymbol }}

{{ serviceSelling.sellPriceWithoutTax|number_format(2, ',', ' ')|replace({'-': '- '}) }} {{ currencySymbol }}

{{ serviceSelling.sellTaxName|trans({}, 'DocumentTrans') }}

{{ serviceSelling.sellPriceWithTax|number_format(2, ',', ' ')|replace({'-': '- '}) }} {{ currencySymbol }}

{{ loop.index }}. {{ serviceFlatRateSelling.serviceArticleName }}

{{ 'administrative.total.title'|trans({}, 'DocumentTrans' )}}

{{ sellPriceWithoutTaxWithoutDiscountExclPartExch|number_format(2, ',', ' ')|replace({'-': '- '}) }} {{ currencySymbol }}

{% if priceDiscountExclPartExch != 0 %} - {% endif %} {{ priceDiscountExclPartExch|number_format(2, ',', ' ')|replace({'-': '- '}) }} {{ currencySymbol }}

{{ sellPriceWithoutTaxWithDiscountExclPartExch|number_format(2, ',', ' ')|replace({'-': '- '}) }} {{ currencySymbol }}

{{ sellTotalTaxExclPartExch|number_format(2, ',', ' ')|replace({'-': '- '}) }} {{ currencySymbol }}

{{ sellPriceWithTaxExclPartExch|number_format(2, ',', ' ')|replace({'-': '- '}) }} {{ currencySymbol }}

{% set mentions = [] %} {% for groupTaxMention in groupTaxMentions %} {% if groupTaxMention.taxId in sellingTaxData.displayTaxMention %} {% if groupTaxMention.taxMention is not empty %} {% set mentions = mentions|merge([groupTaxMention.taxMention]) %} {% endif %} {% endif %} {% endfor %} {% if documentNote.complementaryMention is not empty %} {% set mentions = mentions|merge([documentNote.complementaryMention]) %} {% endif %} {% if customer.discr is defined %} {% if customer.discr == constant('AppBundle\\Entity\\Contact\\Contact::CONTACT_DISCR_INDIVIDUAL') and documentNote.individualMention is not empty %} {% set mentions = mentions|merge([documentNote.individualMention]) %} {% elseif customer.discr in [constant('AppBundle\\Entity\\Contact\\Contact::CONTACT_DISCR_PROFESSIONAL'), constant('AppBundle\\Entity\\Contact\\Contact::CONTACT_DISCR_GROUP')] and documentNote.professionalMention is not empty %} {% set mentions = mentions|merge([documentNote.professionalMention]) %} {% endif %} {% endif %} {% if mentions|length > 0 %} {{ 'administrative.mentions.tax.title'|trans({}, 'DocumentTrans' )}} : {{ mentions|join(' | ') }} {% endif %}