mirror of
https://forge.chapril.org/tykayn/caisse-bliss
synced 2025-06-20 01:44:42 +02:00
display recent sellings of current festival
This commit is contained in:
parent
20611e96c2
commit
66ca3bdf31
5 changed files with 46 additions and 20 deletions
|
@ -12,6 +12,8 @@
|
|||
<th>Name</th>
|
||||
<th>Date_start</th>
|
||||
<th>Date_end</th>
|
||||
<th>Bénéfice</th>
|
||||
<th>ChiffreAffaire</th>
|
||||
<th>FraisInscription</th>
|
||||
<th>FondDeCaisseAvant</th>
|
||||
<th>FondDeCaisseApres</th>
|
||||
|
@ -33,9 +35,17 @@
|
|||
</td>
|
||||
<td>{{ festival.dateStart ? festival.dateStart|date('Y-m-d') : '' }}</td>
|
||||
<td>{{ festival.dateEnd ? festival.dateEnd|date('Y-m-d') : '' }}</td>
|
||||
<td>{{ festival.fraisInscription }}</td>
|
||||
<td>{{ festival.fondDeCaisseAvant }}</td>
|
||||
<td>{{ festival.fondDeCaisseApres }}</td>
|
||||
<td class="text-right">
|
||||
{% if festival.fraisInscription is null %}
|
||||
{{ festival.chiffreAffaire }} €
|
||||
{% else %}
|
||||
{{ festival.chiffreAffaire - festival.fraisInscription }} €
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="text-right">{{ festival.chiffreAffaire }} €</td>
|
||||
|
||||
<td class="text-right">{{ festival.fondDeCaisseAvant | default('?') }} €</td>
|
||||
<td class="text-right">{{ festival.fondDeCaisseApres | default('?') }} €</td>
|
||||
<td>{{ festival.dateCreation ? festival.dateCreation|date('Y-m-d') : '' }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_festival_show', {'id': festival.id}) }}">voir</a>
|
||||
|
@ -45,7 +55,9 @@
|
|||
<td>{{ festival.sellings|length }}</td>
|
||||
|
||||
<td>
|
||||
<a href="{{ path('app_set_active_festival', {'id': festival.id}) }}">activer</a>
|
||||
<a href="{{ path('app_set_active_festival', {'id': festival.id}) }}">
|
||||
<i class="fa fa-check"></i>
|
||||
activer</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue