{% 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 %}
{{ 'service.reference'|trans({}, 'DocumentTrans' )}} |
{{ 'service.name'|trans({}, 'DocumentTrans' )}} |
{{ 'administrative.unit_price'|trans({}, 'DocumentTrans' )}} |
{{ 'administrative.quantity'|trans({}, 'DocumentTrans' )}} |
{{ 'administrative.total.price_without_tax'|trans({}, 'DocumentTrans' )}} |
{% if displayDiscount == true %}
{{ 'administrative.price_without_tax_discount'|trans({}, 'DocumentTrans' )}} |
{{ 'administrative.total.price_without_tax_discount'|trans({}, 'DocumentTrans' )}} |
{% endif %}
{{ 'administrative.tax'|trans({}, 'DocumentTrans' )}} |
{% if notShowColumnTaxAndTotalWithTax == false %}
{{ 'administrative.total.price_with_tax'|trans({}, 'DocumentTrans' )}} |
{% endif %}
{{ vehicleData.reference }} |
{{ 'vehicle.selling.title'|trans({'%type%' : vehicleSellingType}, 'DocumentTrans' )}} |
{{ vehicleSelling.sellPriceWithoutTaxWithoutDiscount|number_format(2, ',', ' ') }} {{ currencySymbol }} |
1 |
{{ vehicleSelling.sellPriceWithoutTaxWithoutDiscount|number_format(2, ',', ' ') }} {{ currencySymbol }} |
{% if displayDiscount == true %}
{% if vehicleSelling.priceDiscount != 0 %} - {% endif %} {{ vehicleSelling.priceDiscount|number_format(2, ',', ' ') }} {{ currencySymbol }} |
{{ vehicleSelling.sellPriceWithoutTax|number_format(2, ',', ' ') }} {{ currencySymbol }} |
{% endif %}
{% if vehicleSelling.taxName is defined %} {{ vehicleSelling.taxName|trans({}, 'DocumentTrans') }} {% else %} {{ 'tax.name.neutral'|trans({}, 'DocumentTrans') }} {% endif %} |
{% if notShowColumnTaxAndTotalWithTax == false %}
{{ vehicleSelling.sellPriceWithTax|number_format(2, ',', ' ') }} {{ currencySymbol }} |
{% endif %}
{{ vehiclePartExchange.vehicleData.reference }} |
{{ 'vehicle.part_exchange.sub_title'|trans({}, 'DocumentTrans' )}} |
- {{ vehiclePartExchange.priceWithoutTax|number_format(2, ',', ' ') }} {{ currencySymbol }} |
1 |
- {{ vehiclePartExchange.priceWithoutTax|number_format(2, ',', ' ') }} {{ currencySymbol }} |
{% if displayDiscount == true %}
0,00 {{ currencySymbol }} |
- {{ vehiclePartExchange.priceWithoutTax|number_format(2, ',', ' ') }} {{ currencySymbol }} |
{% endif %}
{{ vehiclePartExchange.taxName|trans({}, 'DocumentTrans') }} |
{% if notShowColumnTaxAndTotalWithTax == false %}
- {{ vehiclePartExchange.priceWithTax|number_format(2, ',', ' ') }} {{ currencySymbol }} |
{% endif %}
{{ serviceSelling.reference }} |
{{ serviceSelling.name }} |
{{ serviceSelling.sellUnitPriceWithoutTax|number_format(2, ',', ' ') }} {{ currencySymbol }} |
{{ serviceSelling.quantity|replace({'-': '- '}) }} |
{{ serviceSelling.sellPriceWithoutTaxWithoutDiscount|number_format(2, ',', ' ')|replace({'-': '- '}) }} {{ currencySymbol }} |
{% if displayDiscount == true %}
{% if serviceSelling.priceDiscount != 0 %} - {% endif %} {{ serviceSelling.priceDiscount|number_format(2, ',', ' ')|replace({'-': '- '}) }} {{ currencySymbol }} |
{{ serviceSelling.sellPriceWithoutTax|number_format(2, ',', ' ')|replace({'-': '- '}) }} {{ currencySymbol }} |
{% endif %}
{{ serviceSelling.sellTaxName|trans({}, 'DocumentTrans') }} |
{% if notShowColumnTaxAndTotalWithTax == false %}
{{ serviceSelling.sellPriceWithTax|number_format(2, ',', ' ')|replace({'-': '- '}) }} {{ currencySymbol }} |
{% endif %}
{{ loop.index }}. {{ serviceFlatRateSelling.serviceArticleName }} |
{% if displayDiscount == true %} | {% endif %} | {% if notShowColumnTaxAndTotalWithTax == false %} | {% endif %} | ||||
{{ 'administrative.total.title'|trans({}, 'DocumentTrans' )}} |
{{ sellPriceWithoutTaxWithoutDiscountExclPartExch|number_format(2, ',', ' ')|replace({'-': '- '}) }} {{ currencySymbol }} |
{% if displayDiscount == true %}
{% if priceDiscountExclPartExch != 0 %} - {% endif %} {{ priceDiscountExclPartExch|number_format(2, ',', ' ')|replace({'-': '- '}) }} {{ currencySymbol }} |
{{ sellPriceWithoutTaxWithDiscountExclPartExch|number_format(2, ',', ' ')|replace({'-': '- '}) }} {{ currencySymbol }} |
{% endif %}
{{ sellTotalTaxExclPartExch|number_format(2, ',', ' ')|replace({'-': '- '}) }} {{ currencySymbol }} |
{% if notShowColumnTaxAndTotalWithTax == false %}
{{ sellPriceWithTaxExclPartExch|number_format(2, ',', ' ')|replace({'-': '- '}) }} {{ currencySymbol }} |
{% endif %}
{% 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 %}