{% set s = expense.status.value %} {% set badge = s == 'paye' ? 'badge-paye' : (s == 'partiel' ? 'badge-partiel' : 'badge-avenir') %} {% set label = s == 'paye' ? 'Payé' : (s == 'partiel' ? 'Partiel' : 'À venir') %} {% set titre = expense.description %} {% if expense.company %} {% if titre starts with (expense.company.name ~ ' - ') %}{% set titre = titre[(expense.company.name|length + 3):] %} {% elseif titre starts with (expense.company.name ~ ' – ') %}{% set titre = titre[(expense.company.name|length + 3):] %}{% endif %} {% endif %} {{ label }} {{ titre }} {%- if expense.primaryQuote %}{{ expense.primaryQuote.label }}{% if expense.company or expense.paidBy %} · {% endif %}{% endif -%} {{- expense.company ? expense.company.name : (expense.paidBy ? expense.paidBy.name : '') -}} {%- if expense.company and expense.paidBy %} · {{ expense.paidBy.name }}{% endif %} {{ expense.company ? expense.company.name : '—' }} {{ expense.paidBy ? expense.paidBy.name : '—' }} {{ expense.financing ? expense.financing.name : '—' }} {{ expense.totalAmount|number_format(0, ',', ' ') }} €