first commit
This commit is contained in:
48
Base/templates/Dashboards/DashboardAdmin/total_expense.html
Normal file
48
Base/templates/Dashboards/DashboardAdmin/total_expense.html
Normal file
@@ -0,0 +1,48 @@
|
||||
<div class="container mt-4">
|
||||
<h4 class="mb-4 text">Relatório de Despesas</h4>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover border">
|
||||
<thead class="table-dark">
|
||||
<tr>
|
||||
<th scope="col">Data</th>
|
||||
<th scope="col">Descrição</th>
|
||||
<th scope="col">Valor</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for bank_name, info in total_expense.grouped_data.items %}
|
||||
<tr>
|
||||
<td colspan="3" class="text-primary fw-bold border-bottom-0 pt-3">
|
||||
{{ bank_name|upper }}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{% for item in info.registros %}
|
||||
<tr>
|
||||
<td class="ps-4 text-muted">{{ item.date|date:"d/m/Y" }}</td>
|
||||
<td>{{ item.chart_of_account }}</td>
|
||||
<td>R$ {{ item.gross_value|floatformat:2 }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
<tr class="table">
|
||||
<td colspan="2" class="text-end text-muted small">Subtotal {{ bank_name }}:</td>
|
||||
<td class="fw-bold small">R$ {{ info.total_banco|floatformat:2 }}</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr>
|
||||
<td colspan="3" class="text-center py-4">Sem lançamentos para este mês.</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfoot class="table-dark">
|
||||
<tr>
|
||||
<td colspan="2" class=" align-middle">TOTAL GERAL DOS BANCOS</td>
|
||||
<td class="fs-5">R$ {{ total_expense.total_geral|floatformat:2 }}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user