first commit

This commit is contained in:
2026-01-02 09:19:43 -03:00
parent 63cf724aaf
commit cc44b7ef4f
187 changed files with 2484 additions and 686 deletions

View File

@@ -0,0 +1,61 @@
<div class="col-4">
<div class="card shadow-sm">
<div class="card-header">
<h3 class="h5 mb-0">Relatório de Saídas</h3>
</div>
<div class="table-responsive">
<table class="table table-hover align-middle mb-0">
<thead class="table">
<tr>
<th scope="col" class="ps-4">Descrição / Data</th>
<th scope="col" class="text-end pe-4">Valor (R$)</th>
</tr>
</thead>
<tbody>
{% for nome_servico, dados in Expense.sum_expense.items %}
{# Verifica se a soma do serviço é maior que zero #}
{% if dados.sum_expense > 0 %}
<tr class="table border-bottom">
<td class="ps-4">
<div class="fw-bold">{{ nome_servico }}</div>
</td>
<td class="text-end pe-4">
<span class="badge bg-primary rounded-pill fs-6">
R$ {{ dados.sum_expense|floatformat:2 }}
</span>
</td>
</tr>
{% for detalhe in dados.list_expense %}
{# Verifica se o valor individual é maior que zero #}
{% if detalhe.gross_value > 0 %}
<tr class="border-0">
<td class="ps-5">
<i class="bi bi-arrow-return-right me-2"></i> {{ detalhe.date|date:"d/m/Y" }}
</td>
<td class="text-end pe-4">
{{ detalhe.gross_value|floatformat:2 }}
</td>
</tr>
{% endif %}
{% endfor %}
{% endif %}
{% empty %}
<tr>
<td colspan="2" class="text-center py-4 text-muted">
Nenhum serviço realizado neste mês.
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div class="card-footer d-flex justify-content-between align-items-center">
<div class="h4 mb-0">Total</div>
<span class="badge bg-primary rounded-pill fs-6">
<div class="h4 mb-0 ">R$ {{ Expense.sum_expense_all|floatformat:2 }}</div>
</span>
</div>
</div>
</div>