{% extends 'app/base.html.twig' %} {% block body %}

Avoirs Fournisseurs

Avoirs reçus (qualité non conforme, livraison partielle, etc.)

{% if nbEnAttente > 0 %} {{ nbEnAttente }} en attente {% endif %}
{% if nbEnAttente > 0 %}
{{ nbEnAttente }} avoir{{ nbEnAttente > 1 ? 's' : '' }} en attente d'application. Cliquez sur "Appliquer" pour déduire le montant de vos achats du mois en cours.
{% endif %} {# Filtres statut #}
Tous En attente {% if nbEnAttente > 0 %}{{ nbEnAttente }}{% endif %} Appliqués
{% if avoirs is empty %}
Aucun avoir trouvé{% if statut %} avec ce filtre{% endif %}. Pour déclarer un avoir, allez dans Achats et cliquez sur le bouton 🏷️ d'une ligne.
{% else %}
{% if is_granted('ROLE_TENANT_GESTIONNAIRE') %} {% endif %} {% for avoir in avoirs %} {% if is_granted('ROLE_TENANT_GESTIONNAIRE') %} {% endif %} {% endfor %}
Statut Fournisseur Description Montant HT Montant TTC TVA Déclaré le Achat d'origine NotesActions
{% if avoir.statut == 'en_attente' %} ⏳ En attente {% else %} ✅ Appliqué {% if avoir.date_application %}
{{ avoir.date_application|date('d/m/Y') }}
{% endif %} {% endif %}
{{ avoir.fournisseur }} {{ avoir.description }} {{ avoir.montant_ht|number_format(2, ',', ' ') }} € {{ avoir.montant_ttc|number_format(2, ',', ' ') }} € {{ avoir.taux_tva|number_format(1) }} % {{ avoir.date_creation|date('d/m/Y') }} {% if avoir.achat_source_desc %} {{ avoir.achat_source_desc }} {% if avoir.date_achat %}
{{ avoir.date_achat|date('d/m/Y') }}{% endif %} {% else %} — {% endif %}
{{ avoir.notes ?: '—' }} {% if avoir.statut == 'en_attente' %} {% set montantConfirm = avoir.montant_ttc|number_format(2, ',', ' ') %}
{% else %} {% endif %}
Total TTC : {%- set totalHT = 0 %}{% for a in avoirs %}{% set totalHT = totalHT + a.montant_ht %}{% endfor %} {{ totalHT|number_format(2, ',', ' ') }} € {%- set totalTTC = 0 %}{% for a in avoirs %}{% set totalTTC = totalTTC + a.montant_ttc %}{% endfor %} {{ totalTTC|number_format(2, ',', ' ') }} €
{% endif %}
Retour aux Achats
{% endblock %}