{% extends 'base.html.twig' %} {% block body %}
{% for label, messages in app.flashes %} {% for message in messages %}
{{ message }}
{% endfor %} {% endfor %}

Mouvements de la caisse

Caisse : {{ caisse.nom }}


{% for mov in movements %} {% if mov.type == 'operation' %} {% elseif mov.type == 'transaction' %} {% elseif mov.type == 'alimentation' %} {% endif %} {% endfor %}
ID Type Montant Responsable / Société Date Statut Action
{{ mov.id }}Opération {{ mov.montant }} DT {{ mov.agent ? mov.agent.nom ~ ' ' ~ mov.agent.prenom : '-' }}Transaction {{ mov.montant }} DT {{ mov.agent ? mov.agent.nom ~ ' ' ~ mov.agent.prenom : '-' }}Alimentation {{ mov.montant }} DT {{ mov.societe is defined ? mov.societe.Bsociete.nom : '-' }}{{ mov.dateCreation|date('d/m/Y H:i') }} {% if mov.estCorrection is defined and mov.estCorrection %} Correction {% elseif mov.operations is defined and mov.operations|length > 0 %} Corrigé
Corrigé par : {% for id in mov.operations %} #{{ id }}{% if not loop.last %}, {% endif %} {% endfor %}
{% else %} Normal {% endif %}
{% if (mov.estCorrection is defined and mov.estCorrection) or (mov.operations is defined and mov.operations|length > 0) %} {% else %} {% if mov.type != "transaction" %} Corriger {% endif %} {% endif %}
{% endblock %}