{% extends 'layouts/admin_layout.html.twig' %} {% block title %}Journal des Encaissements {% endblock %} {% block content %}
Suivi chronologique des encaissements et validations de bons
| Date / Heure | Client | Bien / Projet | Référence / Émetteur | Mode | Montant | Statut | Actions |
|---|---|---|---|---|---|---|---|
|
{{ p.datePaiement|date('d/m/Y') }}
{{ p.datePaiement|date('H:i') }}
|
{{ p.souscription.client.fullName }}
{{ p.souscription.client.telephone }}
|
{{ p.souscription.lot.projet.nom }}
Lot
{{ p.souscription.lot.numeroLot }}
|
{# Affichage de la Référence (Transaction ou Bon) #}
{% if p.estValide %}
{{ p.referenceTransaction ?: 'SANS RÉF.' }}
{% elseif p.bon %}
{{ p.bon.referenceBon }}
{% else %}
{{ p.referenceTransaction ?: 'EN ATTENTE' }}
{% endif %}
{# Affichage de l'Agent responsable #}
{% if p.estValide %}
Encaissé par :
{{ p.user.fullName|default('Système') }} {% elseif p.bon %} Émis par : {{ p.bon.user.fullName|default('Système') }} {% else %} Initié par : {{ p.user.fullName|default('Système') }} {% endif %} |
{% set modeColor = { 'ESPECES': 'success', 'CHEQUE': 'warning', 'VIREMENT': 'primary', 'MOBILE_MONEY': 'dark' }[p.moyenPaiement.value] | default('secondary') %} {{ p.moyenPaiement.value }} | {{ p.montant|number_format(0, ',', ' ') }} | {% if p.estValide %} Validé {% else %} En attente {% endif %} |
{# Section des actions dans votre boucle for p in paiements #}
|
|
Aucun paiement trouvé pour cette sélection. |
|||||||