{% block stylesheets %} {% endblock %} {% block body %} {% if property|length %}
FICHE DE VERSEMENT N°
Mois: {{ property.createdAt|date('m-Y') }}

Nom de l'agent: {{ property.agent }}
{% if property.agent.user.phoneNumber %} Tél: {{ property.agent.user.phoneNumber }} {% endif %}
{% if property.owner.user.phoneNumber %} Nom du propriétaire: {{ property.owner }} / Tél: {{ property.owner.user.phoneNumber }} {% endif %}
N° de la parcelle: {{ property.street }} {{ property.streetAdd }} {{ property.city }} {{ property.zipcode }} {{ property.state }}
{% set total = 0 %} {% for tenant in property.tenants %} {% set total = total + tenant.price %} {% endfor %} Estimation: {{ total }}
{% if property.tenants|length %} {% set getRents = 0 %} {% if app.user.isOwner == true %} {% endif %} {% for tenant in property.tenants %} {% for rent in tenant.rents %} {% if rent.dateFocus|date('Y-m') == dateNow %} {% if tenant.price > rent.amount %} {% else %} {% endif %} {% endif %} {% endfor %} {% for rent in tenant.rents %} {% if rent.dateFocus|date('Y-m') == dateNow %} {% set getRents = getRents + rent.amount %} {% endif %} {% endfor %} {% endfor %}
Prénom Nom Sommes versées Arriérés DépensesACTIONS
{{ tenant.firstname }} {{ tenant.lastname }} {{ rent.amount }} € {{ rent.amount }} € {% if tenant.totalDebtToPay > 0 %}

Dette : {{ tenant.totalDebtToPay(tenant.getLastRentByDate(dateObject)) }} €

{% endif %} {% if tenant.totalDebtToPay + tenant.price > tenant.price %}

Loyer à payer : {{ tenant.totalDebtToPay + tenant.price }} €

{% endif %}
{% set nap = getRents - property.agent.commission %}
Total: {{ getRents }}
Comission: {{ property.agent.commission }}
{% if nap < 0 %}
NAP: {{ nap }}
{% else %}
NAP: {{ nap }}
{% endif %}
{% endif %}
Fait le {{ "now"|date("d/m/Y") }}
{% endif %} {% endblock %}