{% if vehicle is not null %}

Vehicle: {{ vehicle.registrationNumber }}

{% for entity in transactions %} {% endfor %}
DateReferenceDescriptionSub TotalVatTotal
{{ entity.date|date("Y/m/d") }} {{ entity.reference|trim }} {{ entity.description|trim }} {{ entity.subTotal|number_format(2, '.', '') }} {{ entity.vat|number_format(2, '.', '') }} {{ entity.total|number_format(2, '.', '') }}
{% else %} {% for entity in transactions %} {% endfor %}
DateVehicleTagReferenceDescriptionSub TotalVatTotal
{{ entity.date|date("Y/m/d") }} {% if entity.transaction %}{% if entity.transaction.vehicle %}{{ entity.transaction.vehicle.registrationNumber|trim }}{% endif %}{% endif %} {% if entity.transaction %}{% if entity.transaction.vehicle %}{{ entity.transaction.vehicle.tag|trim }}{% endif %}{% endif %} {{ entity.reference|trim }} {{ entity.description|trim }} {{ entity.subTotal|number_format(2, '.', '') }} {{ entity.vat|number_format(2, '.', '') }} {{ entity.total|number_format(2, '.', '') }}
{% endif %}