61 lines
2.9 KiB
HTML
61 lines
2.9 KiB
HTML
<div class="col-4">
|
|
<div class="card shadow-sm">
|
|
<div class="card-header">
|
|
<h3 class="h5 mb-0">Relatório de Entradas</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 Credit.sum_credit.items %}
|
|
{# Verifica se a soma do serviço é maior que zero #}
|
|
{% if dados.sum_credit > 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_credit|floatformat:2 }}
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
|
|
{% for detalhe in dados.list_credit %}
|
|
{# 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$ {{ Credit.sum_credit_all|floatformat:2 }}</div>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div> |