{% block body %}
{{ "Fecha" }}: {{ entity.date|date('d-m-Y') }}
{{ "Agente" }}: {{ entity.createdBy and entity.createdBy.person?entity.createdBy.person.fullName|raw:'Sin dato' }}
{{ "Cliente" }}: {{ entity.client.fullName|raw}}
{{ "Contrato" }}: {{ entity.client.membership.contract.contractNumber|default("Sin contrato")}}
{% if entity.status == 'approved' %}
{{ "Aprobado por"}}: {{ entity.approvedBy.fullName|raw|default("(Sin dato)") }}
{% endif %} {% if entity.status == 'rejected' %}
{{ "Rechazado por" }}: {{ entity.approvedBy.fullName|raw|default("(Sin dato)") }}
{{ "Razón de rechazo" }}: {{ entity.comment|default("(Sin dato)") }}
{% endif %} {% if entity.revalidatedBy %}
{{ "Revalidado por" }}: {{ entity.revalidatedBy.fullName|raw }}
{% endif %}
{% embed 'Common/baseAdminPannel.html.twig' %} {% block title %} Detalles del movimiento {% endblock %} {% block subtitle %} {% endblock %} {% block body %}
{{ entity.typeName|trans }}

{{ "Importe del pago"|trans |capitalize }}: {{ entity.amount|price }}

{% endblock %} {% endembed %}
{% endblock %}
{% if entity.status != 'approved' %} {% endif %} {% if entity.status in ['approved', 'rejected'] and entity.revalidatedBy is null and is_granted('RESERV_PAYMENT_REVALIDATE') %} {% endif %} {% if entity.status != 'rejected' and entity.canBeRejected %} {% endif %}