ComptaClub/templates/comptability/export_table.html

36 lines
1.8 KiB
HTML
Raw Normal View History

2020-02-17 21:38:47 +01:00
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th class="centered sortable" rowspan="2">#</th>
<th class="centered sortable" rowspan="2">Date</th>
<th class="centered sortable" rowspan="2">Description</th>
<th class="centered" colspan="2">Banque</th>
<th class="centered" colspan="2">Caisse</th>
<th class="centered" rowspan="2">TOTAL</th>
</tr>
<tr>
<th class="sortable push-right">#</th>
<th class="centered sortable">Montant</th>
<th class="sortable push-right">#</th>
<th class="centered">Montant</th>
</tr>
</thead>
2020-02-21 21:47:09 +01:00
{% for transaction in transactions_list.transactions_list %}
2020-02-17 21:38:47 +01:00
<tr>
2020-02-21 21:47:09 +01:00
<td>{{ transaction.id }}</td>
<td class="push-right">{{ transaction.registrationDate | date:"d-m-Y" }}</td>
2022-04-25 10:19:54 +02:00
<td><a href="{% url 'transaction_details' transaction.id %}">{{ transaction.description }}</a></td>
2020-02-21 21:47:09 +01:00
<td>{% if transaction.bkExtractNumber %}{{ transaction.bkExtractNumber }}{% endif %}</td>
<td class="push-right">{{ transaction.bkAmount }}</td>
<td>{% if transaction.bxExtractNumber %}{{ transaction.bxExtractNumber }}{% endif %}</td>
<td class="push-right">{{ transaction.bxAmount }}</td>
<td class="push-right">{{ transaction.totalAmount }}</td>
2020-02-17 21:38:47 +01:00
</tr>
{% endfor %}
<tr>
<td colspan="3" class="push-right"><b>TOTAL</b></td>
2020-02-21 21:47:09 +01:00
<td colspan="2" class="push-right"><b>{{ transactions_list.sum_bank_amount }}</b></td>
<td colspan="2" class="push-right"><b>{{ transactions_list.sum_box_amount }}</b></td>
<td class="push-right"><b>{{ transactions_list.sum_total_amount }}</b></td>
2020-02-17 21:38:47 +01:00
</tr>
</table>