first commit
This commit is contained in:
51
Base/templates/Dashboards/DashboardAdmin/Stone.html
Normal file
51
Base/templates/Dashboards/DashboardAdmin/Stone.html
Normal file
@@ -0,0 +1,51 @@
|
||||
<div class="container mt-5">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card shadow">
|
||||
<div class="card-header bg-dark d-flex justify-content-between align-items-center">
|
||||
<h4 class="mb-0 text-white">Relatório de Métricas de Estoque</h4>
|
||||
<span class="badge bg-primary">Total de Itens: {{ Stone.Stone|length }}</span>
|
||||
</div>
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-dark table-hover mb-0">
|
||||
<thead class="table">
|
||||
<tr>
|
||||
<th>Produto</th>
|
||||
<th class="text-center">Q. Estoque</th>
|
||||
<th>Custo Bruto </th>
|
||||
<th>Valor Adquirido </th>
|
||||
<th>Preço Unit. Compra</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for item in Stone.Stone %}
|
||||
<tr>
|
||||
<td class="fw-bold text-info">{{ item.produto }}</td>
|
||||
<td class="text-center">
|
||||
<span class="badge {% if item.quantidade_estoque > 0 %}bg-success{% else %}bg-danger{% endif %}">
|
||||
{{ item.quantidade_estoque }}
|
||||
</span>
|
||||
</td>
|
||||
<td>R$ {{ item.valor_total_estoque_bruto|floatformat:2 }}</td>
|
||||
<td class="text-success-custom">R$ {{ item.valor_total_estoque_liquido|floatformat:2 }}</td>
|
||||
<td class="text-text-success-custom">R$ {{ item.valor_unitario_compra_medio|floatformat:2 }}</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr>
|
||||
<td colspan="5" class="text-center py-4 text-muted">Nenhum registro encontrado.</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{# <div class="card-footer bg-dark text-muted">#}
|
||||
{# <small>Gerado em: {% now "d/m/Y H:i" %}</small>#}
|
||||
{# </div>#}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{#{{Stone.}}#}
|
||||
22
Base/templates/Dashboards/DashboardAdmin/index.html
Normal file
22
Base/templates/Dashboards/DashboardAdmin/index.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{% extends "BaseLogin.html" %}
|
||||
{% block title %} Dashboard Admin {% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-2"> {% include 'Dashboards/DashboardAdmin/total_banck.html' %} </div>
|
||||
<div class="col-md-3"> {% include 'Dashboards/DashboardAdmin/total_expense.html' %} </div>
|
||||
<div class="col-md-4"> {% include 'Dashboards/DashboardAdmin/total_firm.html' %} </div>
|
||||
{# <div class="col-md-3"> {% include 'Dashboards/DashboardAdmin/total_prof_month.html' %} </div>#}
|
||||
{# <div class="col-md-3"> {% include 'Dashboards/DashboardAdmin/total_expense_prof.html' %} </div>#}
|
||||
{# <div class="col-md-3"> {% include 'Dashboards/DashboardAdmin/total_credit_prof.html' %} </div>#}
|
||||
<div class="col-md-2"> {% include 'Dashboards/DashboardAdmin/list-group.html' %} </div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="col-md-6">{% include 'Dashboards/DashboardAdmin/Stone.html' %} </div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
{% endblock %}
|
||||
11
Base/templates/Dashboards/DashboardAdmin/list-group.html
Normal file
11
Base/templates/Dashboards/DashboardAdmin/list-group.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item"><a href="{% url 'ProfessionalListView' %}" > Professional </a></li>
|
||||
<li class="list-group-item"><a href="{% url 'BankAccountsListView' %}" > Banks </a></li>
|
||||
<li class="list-group-item"><a href="{% url 'PayMethodListView' %}" > Meio de Pagamento </a></li>
|
||||
<li class="list-group-item"><a href="{% url 'ServiceListListView' %}" > Lista de Serviços </a></li>
|
||||
<li class="list-group-item"><a href="{% url 'ProductListListView' %}" > Lista de Produtos </a></li>
|
||||
<li class="list-group-item"><a href="{% url 'ChartOfAccountListView' %}" > Plano de Contas </a></li>
|
||||
<li class="list-group-item"><a href="{% url 'MovStockListView' %}" > Estoque </a></li>
|
||||
<li class="list-group-item"><a href="{% url 'MovProductListView' %}" > Venda de Produtos </a></li>
|
||||
<li class="list-group-item"><a href="{% url 'MovTransitionListView' %}" > Trans. de Contas </a></li>
|
||||
</ul>
|
||||
38
Base/templates/Dashboards/DashboardAdmin/total_banck.html
Normal file
38
Base/templates/Dashboards/DashboardAdmin/total_banck.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<div class="card shadow-sm mb-4">
|
||||
<div class="card-header ">
|
||||
<h3 class="h5 mb-0">Resumo por Banco</h3>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<thead class="table">
|
||||
<tr>
|
||||
<th>Banco</th>
|
||||
<th class="text-end">Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for name, value in total_bank.sum_total.items %}
|
||||
<tr>
|
||||
<td class="fw-bold ">{{ name }}</td>
|
||||
<td class="text-end ">R$ {{ value|floatformat:2 }}</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr>
|
||||
<td colspan="2" class="text-center text-muted py-4">
|
||||
<i>Nenhum dado encontrado.</i>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
{% if total_bank.sum_total %}
|
||||
<tfoot class="table-group-divider">
|
||||
<tr class="table">
|
||||
<td class="fw-bold">Total Geral</td>
|
||||
<td class="text-end fw-bold">R$ {{ total_bank.sum_all|floatformat:2 }}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
{% endif %}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,23 @@
|
||||
<h3> Credito do Prof. </h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Banco</th>
|
||||
<th>Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for name, value in total_credit_prof.sum_total.items %}
|
||||
<tr class="table table-striped" >
|
||||
<td>{{ name }}</td>
|
||||
<td>R$ {{ value|floatformat:2 }}</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr>
|
||||
<td colspan="2"> Vazio. </td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
Todos os bancos R$ {{ total_credit_prof.sum_all |floatformat:2 }}
|
||||
|
||||
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>
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<h3> Despesas Prof </h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Banco</th>
|
||||
<th>Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for name, value in total_expense_prof.sum_total.items %}
|
||||
<tr class="table table-striped" >
|
||||
<td>{{ name }}</td>
|
||||
<td>R$ {{ value|floatformat:2 }}</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr>
|
||||
<td colspan="2"> Vazio. </td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
Todos os bancos R$ {{ total_expense_prof.sum_all |floatformat:2 }}
|
||||
56
Base/templates/Dashboards/DashboardAdmin/total_firm.html
Normal file
56
Base/templates/Dashboards/DashboardAdmin/total_firm.html
Normal file
@@ -0,0 +1,56 @@
|
||||
<div class="card shadow-sm border-0 mb-4">
|
||||
<div class="card-header py-3 d-flex justify-content-between align-items-center">
|
||||
<h3 class="h5 mb-0 text-primary">
|
||||
<i class="bi bi-person-check-fill me-2"></i>Resumo de Atendimentos
|
||||
</h3>
|
||||
<span class="badge rounded-pill bg-primary px-3">Mês Atual</span>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<thead class="table text-secondary">
|
||||
<tr>
|
||||
<th class="ps-4">Profissional</th>
|
||||
<th>Serviço</th>
|
||||
<th class="text-center">Qtd. Realizada</th>
|
||||
<th class="text-end pe-4">Lucro Líquido</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for item in total_firm.services %}
|
||||
<tr>
|
||||
<td class="ps-4">
|
||||
<span class="fw-bold ">{{ item.professional__name }}</span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="text-muted">{{ item.service__name }}</span>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<span class="badge bg-light text-dark border">{{ item.quantidade_feitas }}</span>
|
||||
</td>
|
||||
<td class="text-end pe-4 fw-semibold text-success">
|
||||
R$ {{ item.lucro_liquido|floatformat:2 }}
|
||||
</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr>
|
||||
<td colspan="4" class="text-center py-5 text-muted">
|
||||
<p class="mb-0">Nenhum atendimento registrado até o momento.</p>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
||||
{% if total_firm.services %}
|
||||
<tfoot class="table-group-divider">
|
||||
<tr class="bg-light">
|
||||
<td colspan="3" class="fw-bold py-3">Total Geral da Firma:</td>
|
||||
<td class="text-end pe-4 fw-bold text-primary h4 mb-0">
|
||||
R$ {{ total_firm.total|floatformat:2 }}
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
{% endif %}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,22 @@
|
||||
<h3> Prof. </h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Prof.</th>
|
||||
<th>Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for name, value in total_prof.sum_total.items %}
|
||||
<tr class="table table-striped" >
|
||||
<td>{{ name }}</td>
|
||||
<td>R$ {{ value|floatformat:2 }}</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr>
|
||||
<td colspan="2"> Vazio. </td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
Todos os Prof. R$ {{ total_prof.sum_all |floatformat:2 }}
|
||||
Reference in New Issue
Block a user