{# templates/entreprise/loyer_mensuel/index.html.twig #} {% extends 'entreprise/entreprise_base.html.twig' %} {% block title %}Facturation Mensuelle | {{ entreprise.raisonSociale|default('Gestion') }}{% endblock %} {% set currency = app.user.entreprise.devise ? app.user.entreprise.devise.symbole : 'F.CFA' %} {% block body %} {% set currentSort = app.request.query.get('sort', 'date') %} {% set currentDir = app.request.query.get('direction', 'DESC') %} {% set nextDirection = (currentDir == 'ASC') ? 'DESC' : 'ASC' %} {% set isExpired = (abonnementActuel is null or not abonnementActuel.isActive()) %} {% set canModify = (not isExpired) %}
{# --- EN-TÊTE --- #}

Suivi des encaissements et quittances de vos Appartements.

IMPRIMER LES QUITTANCES {% if is_granted('ROLE_ENTREPRISE_COLLAB') %}
CRÉER UNE FACTURE
{% endif %}
{% include 'flash_messages.html.twig' %} {# --- FILTRES --- #}
{% include 'entreprise/_filtre_loyer.html.twig' with {'form': filtreForm, 'reset_path': path('app_entreprise_loyer_mensuel_index')} %}
{# --- STATISTIQUES --- #} {% if loyers_mensuels|length > 0 %}
Total Facturé
{{ stats.totalDu | number_format(0, '.', ' ') }} {{ currency }}
Total Encaissé
{{ stats.totalPaye | number_format(0, '.', ' ') }} {{ currency }}
Reste à Percevoir
{{ stats.resteAPayer | number_format(0, '.', ' ') }} {{ currency }}
{% endif %}
{# --- TABLEAU --- #}
{% for loyer in loyers_mensuels %} {% else %} {% endfor %}
Référence & Période Locataire & Appartement Montant Dû Réglé Statut Actions
{{ loyer.reference|default('#' ~ loyer.id) }}
{{ loyer.mois|date_mois }} {{ loyer.annee }}
{{ loyer.location.locataire.nomComplet }}
{{ loyer.location.appartement.titre }} {{ loyer.location.appartement.immeuble.titre }} (Lot)
{{ loyer.totalDu | number_format(0, '.', ' ') }} {{ loyer.montantPaye | number_format(0, '.', ' ') }} {% if loyer.statut == constant('App\\Entity\\Entreprise\\LoyerMensuel::STATUT_PAYE') %} Payé {% elseif loyer.statut == constant('App\\Entity\\Entreprise\\LoyerMensuel::STATUT_EN_RETARD') %} En retard {% else %} En attente {% endif %}
{# --- MISE À JOUR : APPARITION SI STATUT != 1 (PAYÉ) --- #} {% if loyer.statut != constant('App\\Entity\\Entreprise\\LoyerMensuel::STATUT_PAYE') %} {% endif %}

Aucune facture trouvée.

{% endblock %}