first commit

This commit is contained in:
2025-11-01 18:10:39 -03:00
parent 6e7348359f
commit 63cf724aaf
220 changed files with 4040 additions and 62 deletions

View File

@@ -1,11 +0,0 @@
{% extends "BaseLogin.html" %}
{% block title %} Dashboard {% endblock %}
{% block content %}
<div class="row">
<div class="col-12">
<h1> {{ Day }} </h1>
</div>
</div>
<br>
{% endblock %}

View File

@@ -0,0 +1,24 @@
<h3> Professional </h3>
<div class="row">
<table class="table">
<thead>
<tr>
<th>Banco</th>
<th>Total</th>
</tr>
</thead>
<tbody>
{% for Prof, sum in Professional.professional.items %}
{% if sum != 0 %}
<tr class="table table-striped" >
<td>{{ Prof }}</td>
<td>R$ {{ sum|floatformat:2 }}</td>
</tr>
{% endif %}
{% empty %} <tr> <td colspan="2"> Vazio. </td> </tr> {% endfor %}
</tbody>
</table>
<p> Total : R$: {{ Professional.sum_all_prof|floatformat:2 }}</p>
</div>
<br>

View File

@@ -0,0 +1,24 @@
<h3> Serviço </h3>
<div class="row">
<table class="table">
<thead>
<tr>
<th>Produtos</th>
<th>Total</th>
</tr>
</thead>
<tbody>
{% for Prod, sum in Service.Service.items %}
{% if sum != 0 %}
<tr class="table table-striped" >
<td>{{ Prod }}</td>
<td>R$ {{ sum|floatformat:2 }}</td>
</tr>
{% endif %}
{% empty %} <tr> <td colspan="2"> Vazio. </td> </tr> {% endfor %}
</tbody>
</table>
<p> Total R$: {{ Service.sum|floatformat:2 }}</p>
</div>
<br>

View File

@@ -0,0 +1,23 @@
<h3> Estoque </h3>
<div class="row">
<table class="table">
<thead>
<tr>
<th>Produtos</th>
<th>Total</th>
</tr>
</thead>
<tbody>
{% for Prod, sum in Stone.Stone.items %}
{% if sum != 0 %}
<tr class="table table-striped" >
<td>{{ Prod }}</td>
<td>{{ sum|floatformat:0 }}</td>
</tr>
{% endif %}
{% empty %} <tr> <td colspan="2"> Vazio. </td> </tr> {% endfor %}
</tbody>
</table>
</div>
<br>

View File

@@ -0,0 +1,22 @@
<h3> Produtos </h3>
<table class="table">
<thead>
<tr>
<th>Produto</th>
<th>Total</th>
<th>Quant.</th>
</tr>
</thead>
<tbody>
{% for name, value in Sum_of_product.product_report.items %}
{% if value.product_item != 0 %}
<tr class="table table-striped" >
<td>{{ name }}</td>
<td>R$ {{ value.product_item|floatformat:2 }}</td>
<td>{{ value.product_cont }}</td>
</tr>
{% endif %}
{% empty %} <tr> <td colspan="2"> Vazio. </td> </tr> {% endfor %}
</tbody>
</table>
<p>Total da Venda : R$: {{ Sum_of_product.sum_of_product|floatformat:2 }}</p>

View File

@@ -0,0 +1,27 @@
<h3 class="mb-4">Relatório de Profissionais</h3>
<table class="table table-striped">
<thead>
<tr>
<th>Profissional</th>
<th>Serviço</th>
<th>Valor Bruto</th>
<th>Quant.</th>
</tr>
</thead>
<tbody>
{% for professional, services in Sum_of_professional_detail.professionals_report.items %}
{% for service, value in services.items %}
{% if value.servSum != 0 %}
<tr>
<td>{{ professional }}</td>
<td>{{ service }}</td>
<td>R$ {{ value.servSum|floatformat:2 }}</td>
<td>{{ value.servCont }}</td>
</tr>
{% endif %}
{% endfor %}
{% endfor %}
</tbody>
</table>
<p> Total de Hoje : R$: {{ Sum_of_professional_detail.sum_of_prof|floatformat:2 }}</p>
<br>

View File

@@ -0,0 +1,20 @@
<h3> Pagamentos </h3>
<table class="table">
<thead>
<tr>
<th>Banco</th>
<th>Total</th>
</tr>
</thead>
<tbody>
{% for name, value in Sum_payment_method_service.bank_balance.items %}
{% if value != 0 %}
<tr class="table table-striped" >
<td>{{ name }}</td>
<td>R$ {{ value|floatformat:2 }}</td>
</tr>
{% endif %}
{% empty %} <tr> <td colspan="2"> Vazio </td> </tr> {% endfor %}
</tbody>
</table>
<p>Total : R$: {{ Sum_payment_method_service.sum_of_bank|floatformat:2 }}</p>

View File

@@ -0,0 +1,28 @@
{% extends "BaseLogin.html" %}
{% block title %} Dashboard {% endblock %}
{% block content %}
<div class="row">
<div class="col-md-6">{% include 'Login/Dashboard/Sum_of_professional_detail.html' %} </div>
<div class="col-md-2"></div>
<div class="col-md-3">{% include 'Login/Dashboard/Stone.html' %} </div>
<div class="col-md-1"> </div>
</div>
<div class="row">
<div class="col-2">
<div class="col-md-12"> {% include 'Login/Dashboard/Sum_payment_method_service.html' %} </div>
</div>
<div class="col-2">
<div class="col-md-12">{% include 'Login/Dashboard/Professional.html' %} </div>
</div>
<div class="col-2">
<div class="col-md-12">{% include 'Login/Dashboard/Sum_of_product.html' %} </div>
</div>
<div class="col-2">
<div class="col-md-12">{% include 'Login/Dashboard/Service.html' %} </div>
</div>
</div>
<br>
{% endblock %}

View File

@@ -0,0 +1,25 @@
{% extends "BaseLogin.html" %}
{% block title %} Dashboard Admin {% endblock %}
{% block content %}
<div class="row">
<div class="col-12">
<a href="{% url 'ProfessionalListView' %}" class="btn btn-primary"> Professional </a><br>
<a href="{% url 'BankAccountsListView' %}" class="btn btn-primary"> Banks </a><br>
<a href="{% url 'PayMethodListView' %}" class="btn btn-primary"> Meio de Pagamento </a><br>
<a href="{% url 'ServiceListListView' %}" class="btn btn-primary"> Lista de Serviços </a><br>
<a href="{% url 'ProductListListView' %}" class="btn btn-primary"> Lista de Produtos </a><br>
<a href="{% url 'ChartOfAccountListView' %}" class="btn btn-primary"> Plano de Contas </a><br>
<a href="{% url 'MovStockListView' %}" class="btn btn-primary"> Estoque </a><br>
<a href="{% url 'MovExpenseListView' %}" class="btn btn-primary"> Despesa </a><br>
<a href="{% url 'MovProductListView' %}" class="btn btn-primary"> Venda de Produtos </a><br>
</div>
</div>
<br>
<div class="row">
<div class="col-md-3">{% include 'Login/DashboardAdmin/total_banck.html' %} </div>
<div class="col-md-3"> {% include 'Login/DashboardAdmin/total_prof_month.html' %} </div>
{# <div class="col-md-3"> </div>#}
{# <div class="col-md-1"> </div>#}
</div>
{% endblock %}

View File

@@ -0,0 +1,21 @@
<h3> Bancos </h3>
<table class="table">
<thead>
<tr>
<th>Banco</th>
<th>Total</th>
</tr>
</thead>
<tbody>
{% for name, value in total_bank.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>

View File

@@ -0,0 +1,21 @@
<h3> Prof. </h3>
<table class="table">
<thead>
<tr>
<th>Prof.</th>
<th>Total</th>
</tr>
</thead>
<tbody>
{% for name, value in total_prof.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>

View File

@@ -1,5 +0,0 @@
{% extends "Base.html" %}
{% block title %} Home {% endblock %}
{% block content %}
<p class="text-center"> Home </p>
{% endblock %}

View File

@@ -0,0 +1,44 @@
{% extends 'Base.html' %}
{% block title %}Login{% endblock %}
{% block content %}
<div class="container mt-5">
<div class="row justify-content-center">
<div class="col-md-6">
<div class="card">
<div class="card-body">
<h5 class="card-title text-center mb-4">Login</h5>
<form method="post">
{% csrf_token %}
<div class="mb-3">
<label for="username" class="form-label">Usuário </label>
<input type="text" class="form-control" id="username" name="username" required>
</div>
<div class="mb-3">
<label for="password" class="form-label">Senha</label>
<input type="password" class="form-control" id="password" name="password" required>
</div>
<div class="d-grid gap-2">
<button type="submit" class="btn btn-primary">Entrar</button>
</div>
</form>
{% if form.errors %}
<div class="alert alert-danger mt-4">
<ul class="mb-0">
{% for field in form %}
{% for error in field.errors %}
<li>{{ error }}</li>
{% endfor %}
{% endfor %}
{% for error in form.non_field_errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}