{% extends 'base.html.twig' %} {% block body %}
| ID | Type | Montant | Responsable / Société | Date | Statut | Action | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ mov.id }} | {% if mov.type == 'operation' %}Opération | {{ mov.montant }} DT | {{ mov.agent ? mov.agent.nom ~ ' ' ~ mov.agent.prenom : '-' }} | {% elseif mov.type == 'transaction' %}Transaction | {{ mov.montant }} DT | {{ mov.agent ? mov.agent.nom ~ ' ' ~ mov.agent.prenom : '-' }} | {% elseif mov.type == 'alimentation' %}Alimentation | {{ mov.montant }} DT | {{ mov.societe is defined ? mov.societe.Bsociete.nom : '-' }} | {% endif %}{{ 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 %} |