{% for item in data['header_table'] %}
{% if item.display == true %}
{{ item.label|trans({}, 'DocumentTrans') }}
|
{% endif %}
{% endfor %}
{% if vehicleData is not empty %}
{% for item in data['content_table'] %}
{% if item.value is not null %}
{% if item.value is iterable %}
{% if vehicleSellingTitle is not null %}
{{ vehicleSellingTitle }}
{% if vehicleData.internalReference is not empty %}
[{{ vehicleData.internalReference }}]
{% endif %}
{% endif %}
{% for v in item.value %}
{% if v.content is not null %}
{{ v.label|trans({}, 'DocumentTrans') }} : {{ v.content }}
{% endif %}
{% endfor %}
{% else %}
{{ item.value }}
{% endif %}
|
{% endif %}
{% endfor %}
{% if isDisplayHeaderInfo == true %}
|
|
|
|
|
{% endif %}
{% endif %}
{% for serviceList in sellingData.serviceSellings %}
{% set afterTaxname = serviceList.sellTaxName in notPourcentTaxName ? null : '%' %}
{{ serviceList.reference }}
|
{{ serviceList.name }}
{% if serviceList.serviceArticleSellingList|length > 0 %}
{% for serviceFlatRateSelling in serviceList.serviceArticleSellingList %}
{{ serviceFlatRateSelling.serviceArticleName }}
{% endfor %}
{% endif %}
|
{{ serviceList.sellUnitPriceWithoutTax|number_format(2, ',', '') }} {{ currencySymbol }}
|
{{ serviceList.quantity }}
|
{{ serviceList.sellPriceWithoutTaxWithoutDiscount|number_format(2, ',', '') }} {{ currencySymbol }}
|
{% if isDiscount %}
{{ beforValueDiscount }} {{ serviceList.priceDiscount|number_format(2, ',', '') }} {{ currencySymbol }}
|
{{ serviceList.sellPriceWithoutTax|number_format(2, ',', '') }} {{ currencySymbol }}
|
{% endif %}
{{ serviceList.sellTaxName|trans({}, 'DocumentTrans') ~ afterTaxname}}
|
{{ serviceList.sellPriceWithTax|number_format(2, ',', ' ') }} {{ currencySymbol }}
|
{% endfor %}
{% if vehiclePartExchangeData is not empty and vehiclePartExchangeData.vehicleData is not empty %}
{% set partExchangeUnitPriceWithoutTax = - vehiclePartExchangeData.priceWithoutTax %}
{% set partExchangeSellPriceWithoutTax = - vehiclePartExchangeData.priceWithoutTax %}
{% set partExchangeSellPriceWithTax = - vehiclePartExchangeData.priceWithTax %}
{% set afterTaxname = vehiclePartExchangeData.taxName in notPourcentTaxName ? null : '%' %}
{% if vehiclePartExchangeData.vehicleData.voVnType is not empty %}
{{ vehiclePartExchangeData.vehicleData.voVnType }}
{% endif %}
|
{{ 'vehicle.part_exchange.title'|trans({}, 'DocumentTrans') }} :
{% if vehiclePartExchangeData.vehicleData.brand is not empty %}
{{ vehiclePartExchangeData.vehicleData.brand }},
{% endif %}
{% if vehiclePartExchangeData.vehicleData.model is not empty %}
{{ vehiclePartExchangeData.vehicleData.model }},
{% endif %}
{% if vehiclePartExchangeData.vehicleData.version is not empty %}
{{ vehiclePartExchangeData.vehicleData.version }},
{% endif %}
{% if vehiclePartExchangeData.vehicleData.dateOfDistribution is not empty %}
{{ vehiclePartExchangeData.vehicleData.dateOfDistribution|date('d/m/y') }},
{% endif %}
{% if vehiclePartExchangeData.vehicleData.distanceTraveled is not empty %}
{{ vehiclePartExchangeData.vehicleData.distanceTraveled }} Km,
{% endif %}
{% if vehiclePartExchangeData.vehicleData.licenseNumber is not empty %}
{{ vehiclePartExchangeData.vehicleData.licenseNumber }},
{% endif %}
{% if vehiclePartExchangeData.vehicleData.vin is not empty %}
{{ vehiclePartExchangeData.vehicleData.vin }}
{% endif %}
|
{{ partExchangeUnitPriceWithoutTax|number_format(2, ',', ' ') }} {{ currencySymbol }}
|
1
|
{{ partExchangeSellPriceWithoutTax|number_format(2, ',', ' ') }} {{ currencySymbol }}
|
{% if isDiscount %}
|
{{ partExchangeSellPriceWithoutTax|number_format(2, ',', ' ') }} {{ currencySymbol }}
|
{% endif %}
{{ vehiclePartExchangeData.taxName|trans({}, 'DocumentTrans') ~ afterTaxname }}
|
{{ partExchangeSellPriceWithTax|number_format(2, ',', ' ') }} {{ currencySymbol }}
|
{% endif %}
{% if object.type == constant('AppBundle\\Entity\\Administrative\\Invoice\\InvoiceBase::INVOICE_TYPE_REPAIR_ORDER') %}
|
{% else %}
{{ 'administrative.total.title'|trans({}, 'DocumentTrans') }}
|
{% if sellingData.prices.priceDiscount %}
{{ sellingData.prices.sellPriceWithoutTaxWithoutDiscountExclPartExch|number_format(2, ',', ' ') ~ ' ' ~ currencySymbol}}
|
{{ beforValueDiscount }} {{ sellingData.prices.priceDiscount|number_format(2, ',', ' ') ~ ' ' ~ currencySymbol}}
|
{% endif %}
{{ sellingData.prices.sellPriceWithoutTaxWithDiscountExclPartExch|number_format(2, ',', ' ') ~ ' ' ~ currencySymbol}}
|
{{ sellingTaxData.totalTax|number_format(2, ',', ' ') ~ ' ' ~ currencySymbol}}
|
{{ sellingData.prices.sellPriceWithTaxExclPartExch|number_format(2, ',', ' ') ~ ' ' ~ currencySymbol}}
|
{% endif %}