{% extends 'base.html.twig' %} {% block title %}{{ expense.description }}{% endblock %} {% block breadcrumb %} Dépenses {{ expense.description }} {% endblock %} {% block body %}
{{ expense.totalAmount|number_format(2, ',', ' ') }} €
{{ expense.description }}
{% set primaryQuote = expense.primaryQuote %} {% if primaryQuote %}
Devis · {{ primaryQuote.label }} {% if primaryQuote.lot %} · {{ primaryQuote.lot.name }}{% endif %}
{% endif %}
Statut
{{ expense.status.label }}
{% if expense.usesAdvancedMode %}
Payé
{{ expense.paidAmount|number_format(2, ',', ' ') }} € / {{ expense.totalAmount|number_format(2, ',', ' ') }} €
{% elseif not expense.isFullyPaid %}
Reste à payer
{{ expense.remainingAmount|number_format(2, ',', ' ') }} €
{% endif %} {% if expense.paidBy %}
Payé par
{{ expense.paidBy.name }}
{% endif %} {% if expense.company %}
Intervenant
{{ expense.company.name }}
{% endif %} {% if expense.financing %}
Financement
{{ expense.financing.name }}
{% endif %}
{% if expense.usesAdvancedMode and expense.allocations|length %}
Ventilation sur devis
{% for v in expense.allocations %}
{{ v.quote.label }}{{ v.amount|number_format(2, ',', ' ') }} €
{% endfor %}
{% endif %} {% if expense.attachment %}📎 Voir la facture{% endif %}
Modifier {% if expense.usesAdvancedMode and expense.status.value != 'paye' %}
{% endif %}
{% endblock %}