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

@@ -1,7 +1,7 @@
{#<input type="hidden" name="date" value="2025-10-20" >#}
<label> <div class=""> Dia </div>
<input type="date" name="date"
{#<label> <div class=""> Dia </div>#}
<input type="hidden" name="date"
value="{% now 'Y-m-d' %}"
class="date form-control"
{# class="date form-control"#}
>
</label><br>
{#</label><br>#}

View File

@@ -18,11 +18,12 @@
{% include 'Calendar/Create/date.html' %}
<br> {% include 'Calendar/Create/time.html' %}
{% include 'Calendar/Create/first_time.html' %}
<br>
<button type="submit" class="btn btn-primary"> Salvar </button>
&nbsp &nbsp &nbsp
<a href="{% url 'MovCalendarListView' %}" class="btn btn-secondary"> Cancelar </a>
</div>
</div>
<button type="submit" class="btn btn-primary"> Salvar </button>
&nbsp &nbsp &nbsp
<a href="{% url 'MovCalendarListView' %}" class="btn btn-secondary"> Cancelar </a>
</form>
</div>

View File

@@ -25,7 +25,7 @@
<th> Hora </th>
<th> professional </th>
<th> Cliente </th>
<th > service </th>
<th > Service </th>
<th width="15%"> Ações </th>
</tr>
</thead>
@@ -46,6 +46,7 @@
{# <i class="bi bi-pencil"></i>#}
{# </a>#}
{# {% endif %}#}
{# {% if perms.brands.delete_brands %}#}
<a href="{% url 'MovCalendarDeleteView' Cal.id %}" class="btn btn-danger btn-sm">
<i class="bi bi-trash"></i>

View File

@@ -10,7 +10,9 @@
{{ form.as_p }}
<button type="submit" class="btn btn-primary"> Salvar </button>
</form>
<a href="{% url 'BankAccountsListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
<button type="button" onclick="history.back()" class="btn btn-danger">
<i class="bi bi-arrow-left"></i> Cancelar e Voltar
</button>
</div>
</div>
</div>

View File

@@ -1,78 +0,0 @@
{% extends "BaseLogin.html" %}
{% block title %} List {% endblock %}
{% block content %}
<h1> Despesas </h1><br>
<div class="row mb-3">
<div class="col-md-3">
<form method="get" action="{% url 'MovExpenseListView' %}" id="filterForm">
<div class="input-group">
<input type="date" class="date form-control" name="date"
placeholder="Dia" value="{{ request.GET.date }}"
onchange="document.getElementById('filterForm').submit();"
>
<button type="submit" class="btn btn-primary">
<i class="bi bi-search"></i>
</button>
</div>
</form>
</div>
{# {% if perms.brands.add_brands %}#}
{# <div class="col-md-1">#}
{# <a href="{% url 'MovExpenseCreateView' %}" class="btn btn-success float-end">#}
{# <i class="bi bi-plus"></i> Criar </a>#}
{# </div>#}
<div class="col-md-1">
<a href="{% url 'MovExpenseFirmCreateView' %}" class="btn btn-success float-end">
Criar Firm</a>
</div>
<div class="col-md-1">
<a href="{% url 'MovExpenseProfCreateView' %}" class="btn btn-success float-end">
Criar Prof</a>
</div>
{# {% endif %}#}
</div>
<div class="table-responsive">
<table class="table table-striped table-bordered">
<thead class="thead-dark">
<tr align="center">
<th> Data </th>
<th> Plano de Contas </th>
<th> Banco </th>
<th> Firma </th>
<th> Prof </th>
<th> Valor </th>
<th width="15%"> Ações </th>
</tr>
</thead>
<tbody>
{% for Exp in Expenses %}
<tr align="center">
<td> {{ Exp.date|date:"d/m/Y" }} </td>
<td> {{ Exp.chart_of_account }} </td>
<td> {{ Exp.bank }} </td>
<td> {{ Exp.firm }} </td>
<td> {{ Exp.professional }} </td>
<td> {{ Exp.gross_value }} </td>
<td>
<a href="{% url 'MovExpenseDetailView' Exp.id %}" class="btn btn-info btn-sm">
<i class="bi bi-eye"></i>
</a>
{# {% if perms.brands.change_brands %}#}
<a href="{% url 'MovExpenseUpdateView' Exp.id %}" class="btn btn-warning btn-sm">
<i class="bi bi-pencil"></i>
</a>
{# {% endif %}#}
{# {% if perms.brands.delete_brands %}#}
<a href="{% url 'MovExpenseDeleteView' Exp.id %}" class="btn btn-danger btn-sm">
<i class="bi bi-trash"></i>
</a>
{# {% endif %}#}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% include 'components/_pagination.html' %}
{% endblock %}

View File

@@ -0,0 +1,22 @@
{% extends "BaseLogin.html" %}
{% block title %} Create {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Despesa Do Prof. </h3>
<div class="card">
<div class="card-body">
<form method="post" class="form">
{% csrf_token %}
{{ form.date.label }} {{ form.date }} <br><br>
{{ form.chart_of_account.label }}<br>{{ form.chart_of_account }} <br>
{{ form.bank.label }}<br>{{ form.bank }} <br>
{{ form.gross_value.label }} {{ form.gross_value }} <br><br>
<button type="submit" class="btn btn-primary"> Salvar </button>
</form>
{# <a href="{% url 'ProfessionalListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>#}
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,23 @@
{% extends "BaseLogin.html" %}
{% block title %} Create {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Despesa Do Prof. </h3>
<div class="card">
<div class="card-body">
<form method="post" class="form">
{% csrf_token %}
{{ form.date.label }} {{ form.date }} <br><br>
{{ form.chart_of_account.label }}<br>{{ form.chart_of_account }} <br>
{{ form.bank.label }}<br>{{ form.bank }} <br>
{{ form.professional.label }}<br>{{ form.professional }} <br>
{{ form.gross_value.label }} {{ form.gross_value }} <br><br>
<button type="submit" class="btn btn-primary"> Salvar </button>
</form>
{# <a href="{% url 'ProfessionalListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>#}
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,142 @@
{% extends "BaseLogin.html" %}
{% block title %} List {% endblock %}
{% block content %}
<div class="container py-4">
<form method="get" action="{% url 'MovExpenseOrCreditListView' %}" id="Form">
<div class="row align-items-center g-3 mb-4">
<div class="col-12 col-lg-6 d-flex align-items-center gap-3">
<h1 class="h3 m-0 text-nowrap">
<i class="bi bi-wallet2 text-primary me-2"></i>Despesas
</h1>
<div class="input-group" style="max-width: 250px;">
<span class="input-group-text bg-transparent border-secondary text-secondary">
<i class="bi bi-calendar3"></i>
</span>
<select class="form-select border-secondary bg-dark text-white" name="month" onchange="this.form.submit();">
<option value="">Todos os meses</option>
<option value="1" {% if request.GET.month == '1' %}selected{% endif %}>Janeiro</option>
<option value="2" {% if request.GET.month == '2' %}selected{% endif %}>Fevereiro</option>
<option value="3" {% if request.GET.month == '3' %}selected{% endif %}>Março</option>
<option value="4" {% if request.GET.month == '4' %}selected{% endif %}>Abril</option>
<option value="5" {% if request.GET.month == '5' %}selected{% endif %}>Maio</option>
<option value="6" {% if request.GET.month == '6' %}selected{% endif %}>Junho</option>
<option value="7" {% if request.GET.month == '7' %}selected{% endif %}>Julho</option>
<option value="8" {% if request.GET.month == '8' %}selected{% endif %}>Agosto</option>
<option value="9" {% if request.GET.month == '9' %}selected{% endif %}>Setembro</option>
<option value="10" {% if request.GET.month == '10' %}selected{% endif %}>Outubro</option>
<option value="11" {% if request.GET.month == '11' %}selected{% endif %}>Novembro</option>
<option value="12" {% if request.GET.month == '12' %}selected{% endif %}>Dezembro</option>
</select>
</div>
</div>
<div class="col-12 col-lg-6 text-lg-end">
<div class="btn-group" role="group">
<a href="{% url 'MovExpenseOrCreditFirmCreateView' %}" class="btn btn-outline-info btn-sm px-3">D. Firm</a>
<a href="{% url 'MovExpenseOrCreditProfCreateView' %}" class="btn btn-outline-info btn-sm px-3">D. Prof</a>
<a href="{% url 'MovExpenseOrCreditFirmCreditCreateView' %}" class="btn btn-outline-success btn-sm px-3">C. Firm</a>
<a href="{% url 'MovExpenseOrCreditProfCreditCreateView' %}" class="btn btn-outline-success btn-sm px-3">C. Prof</a>
</div>
</div>
</div>
<div class="card bg-dark border-secondary mb-4">
<div class="card-body py-2 px-3">
<div class="row g-3 align-items-center">
<div class="col-md-5 d-flex align-items-center gap-3">
<span class="small text-secondary fw-bold text-uppercase">Tipo:</span>
<div class="btn-group btn-group-sm" role="group">
<input type="radio" class="btn-check" name="type" id="typeC" value="credit"
{% if request.GET.type == "credit" %}checked{% endif %} onchange="this.form.submit();">
<label class="btn btn-outline-secondary px-4" for="typeC">Crédito</label>
<input type="radio" class="btn-check" name="type" id="typeD" value="debit"
{% if request.GET.type == "debit" %}checked{% endif %} onchange="this.form.submit();">
<label class="btn btn-outline-secondary px-4" for="typeD">Débito</label>
</div>
</div>
<div class="col-md-5 d-flex align-items-center gap-3 border-start border-secondary ps-4">
<span class="small text-secondary fw-bold text-uppercase">Resp:</span>
<div class="btn-group btn-group-sm" role="group">
<input type="radio" class="btn-check" name="resp" id="resF" value="firm"
{% if request.GET.resp == "firm" %}checked{% endif %} onchange="this.form.submit();">
<label class="btn btn-outline-secondary px-4" for="resF">Firma</label>
<input type="radio" class="btn-check" name="resp" id="respP" value="prof"
{% if request.GET.resp == "prof" %}checked{% endif %} onchange="this.form.submit();">
<label class="btn btn-outline-secondary px-4" for="respP">Prof.</label>
</div>
</div>
<div class="col-md-2 text-end">
<a href="{% url 'MovExpenseOrCreditListView' %}" class="btn btn-link btn-sm text-secondary text-decoration-none">
<i class="bi bi-x-circle me-1"></i>Limpar
</a>
</div>
</div>
</div>
</div>
</form>
</div>
<div class="table-responsive">
<table class="table table-striped table-bordered">
<thead class="thead-dark">
<tr align="center">
<th width="15%"> Data </th>
<th> Plano de Contas </th>
<th> Valor </th>
<th width="10%"> Banco </th>
<th width="5%"> Firma </th>
<th width="5%"> Credito </th>
<th width="5%"> Debito </th>
<th width="5%"> Prof </th>
<th> Profissimal </th>
<th width="5%"> Ações </th>
</tr>
</thead>
<tbody>
{% for Exp in Expenses %}
<tr align="center">
<td> {{ Exp.date|date:"d/m/Y" }}</td>
<td> {{ Exp.chart_of_account }} </td>
<td> R$ {{ Exp.gross_value }} </td>
<td> {{ Exp.bank }} </td>
<td> {% if Exp.firm %} <i class="bi bi-check-circle-fill text-success "></i>
{% else %} <i class="bi bi-x-circle-fill text-danger "></i> {% endif %} </td>
<td> {% if Exp.credit %} <i class="bi bi-check-circle-fill text-success "></i>
{% else %} <i class="bi bi-x-circle-fill text-danger "></i> {% endif %} </td>
<td> {% if Exp.debit %} <i class="bi bi-check-circle-fill text-success "></i>
{% else %} <i class="bi bi-x-circle-fill text-danger "></i> {% endif %} </td>
<td> {% if Exp.prof %} <i class="bi bi-check-circle-fill text-success "></i>
{% else %} <i class="bi bi-x-circle-fill text-danger "></i> {% endif %} </td>
<td> {% if Exp.professional %} {{ Exp.professional }}
{% else %} <i class="bi bi-x-circle-fill text-danger "></i> {% endif %} </td>
<td>
<form action="{% url 'MovExpenseOrCreditDeleteView' Exp.id %}" method="post" >
{% csrf_token %}
<button type="submit" class="btn btn-danger" >
<i class="bi bi-trash"></i>
</button>
</form>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% include 'components/_pagination.html' %}
<form method="get" action="{% url 'MovExpenseOrCreditListView' %}" id="Form" class="">
</form>
{% endblock %}

View File

@@ -1,6 +1,10 @@
<label> <div class=""> Dia </div>
<input type="date" name="date"
{#<label> <div class=""> Dia </div>#}
{# <input type="date" name="date"#}
{# value="{% now 'Y-m-d' %}"#}
{# class="date form-control"#}
{# disabled#}
{# >#}
{#</label><br><br>#}
<input type="hidden" name="date"
value="{% now 'Y-m-d' %}"
class="date form-control"
>
</label><br><br>
>

View File

@@ -3,7 +3,7 @@
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Cadastrar </h3>
<h3 class="display-6"> lançar um produto </h3>
<div class="row mb-3">
<div class="col-md-8">
<div class="card">
@@ -13,14 +13,12 @@
<div class="row">
<div class="col-md-6">{% include 'Product/Create/client.html' %}</div>
</div>
<div class="row">
<div class="col-md-6">{% include 'Product/Create/date.html' %}</div>
<div class="col-md-6">{{ form.quantity.label }} <br> {{ form.quantity }} </div>
</div>
<div class="row">
<div class="col-md-4">{% include 'Product/Create/product.html' %}</div>
<div class="col-md-4">{% include 'Product/Create/pay_method.html' %}</div>
<div class="col-md-4">{% include 'Product/Create/professional.html' %}</div>
<div class="col-md-2">{% include 'Product/Create/product.html' %}</div>
<div class="col-md-3">{% include 'Product/Create/pay_method.html' %}</div>
<div class="col-md-2">{% include 'Product/Create/professional.html' %}</div>
<div class="col-md-2">{{ form.quantity.label }} <br> {{ form.quantity }} </div>
<div class="col-md-1">{% include 'Product/Create/date.html' %}</div>
</div>
<button type="submit" class="btn btn-primary"> Salvar </button>
</form>

View File

@@ -11,7 +11,7 @@
{{ form.as_p }}
<button type="submit" class="btn btn-primary"> Salvar </button>
</form>
<a href="{% url 'ProfessionalListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
<a href="{% url 'BankAccountsListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
</div>
</div>

View File

@@ -13,6 +13,6 @@
</form>
</div>
</div>
<a href="{% url 'ProfessionalListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
<a href="{% url 'BankAccountsListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
{% endblock %}

View File

@@ -0,0 +1,15 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Detalhes do Banco </h3>
<div class="card">
<div class="card-body">
<h3 class="card-title">{{ object.name }}</h3>
<p class="card-text">Descrição: {{ object.description }}</p>
{# <a href="{% url 'BrandsUpdate' object.id %}" class="btn btn-secondary mt-3 "> Editar </a>#}
</div>
</div>
<a href="{% url 'BankAccountsListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
{% endblock %}

View File

@@ -0,0 +1,79 @@
{% extends "BaseLogin.html" %}
{% block title %} List {% endblock %}
{% block content %}
<h1> Tranf. entre Bancos </h1><br>
<div class="row mb-3">
<div class="col-md-3">
<form method="get" action="{% url 'MovTransitionListView' %}" id="filterForm">
<div class="input-group">
<select class="form-select" name="month" onchange="document.getElementById('filterForm').submit();">
<option value="">Selecione o mês</option>
<option value="1" {% if request.GET.month == '1' %}selected{% endif %}>Janeiro</option>
<option value="2" {% if request.GET.month == '2' %}selected{% endif %}>Fevereiro</option>
<option value="3" {% if request.GET.month == '3' %}selected{% endif %}>Março</option>
<option value="4" {% if request.GET.month == '4' %}selected{% endif %}>Abril</option>
<option value="5" {% if request.GET.month == '5' %}selected{% endif %}>Maio</option>
<option value="6" {% if request.GET.month == '6' %}selected{% endif %}>Junho</option>
<option value="7" {% if request.GET.month == '7' %}selected{% endif %}>Julho</option>
<option value="8" {% if request.GET.month == '8' %}selected{% endif %}>Agosto</option>
<option value="9" {% if request.GET.month == '9' %}selected{% endif %}>Setembro</option>
<option value="10" {% if request.GET.month == '10' %}selected{% endif %}>Outubro</option>
<option value="11" {% if request.GET.month == '11' %}selected{% endif %}>Novembro</option>
<option value="12" {% if request.GET.month == '12' %}selected{% endif %}>Dezembro</option>
</select>
<button type="submit" class="btn btn-primary">
<i class="bi bi-search"></i>
</button>
</div>
</form>
</div>
{# {% if perms.brands.add_brands %}#}
<div class="col-md-6">
<a href="{% url 'MovTransitionCreateView' %}" class="btn btn-success float-end">
<i class="bi bi-plus"></i> Criar </a>
</div>
{# {% endif %}#}
</div>
<div class="table-responsive">
<table class="table table-striped table-bordered">
<thead class="thead-dark">
<tr align="center">
{# <th> ID </th>#}
<th> Data </th>
<th> Entrada </th>
<th> Saida </th>
<th > Valor </th>
<th width="15%"> Ações </th>
</tr>
</thead>
<tbody>
{% for Bank in Transitions %}
<tr align="center">
{# <td> {{ Bank.id }} </td>#}
<td> {{ Bank.date|date:"d/m/Y" }} </td>
<td> {{ Bank.bank_credit }} </td>
<td> {{ Bank.bank_debit }} </td>
<td> {{ Bank.gross_value }} </td>
<td>
<a href="{% url 'MovTransitionDetailView' Bank.id %}" class="btn btn-info btn-sm">
<i class="bi bi-eye"></i>
</a>
{# {% if perms.brands.change_brands %}#}
<a href="{% url 'MovTransitionUpdateView' Bank.id %}" class="btn btn-warning btn-sm">
<i class="bi bi-pencil"></i>
</a>
{# {% endif %}#}
{# {% if perms.brands.delete_brands %}#}
<a href="{% url 'MovTransitionDeleteView' Bank.id %}" class="btn btn-danger btn-sm">
<i class="bi bi-trash"></i>
</a>
{# {% endif %}#}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% include 'components/_pagination.html' %}
{% endblock %}

View File

@@ -0,0 +1,17 @@
{% extends "BaseLogin.html" %}
{% block title %} Bank Accounts List {% endblock %}
{% block content %}
<div class="conteiner mt-4">
<h3 class="display-6"> Editar Bancos </h3>
<div class="card">
<div class="card-body">
<form method="post" class="form">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="btn btn-primary"> Salvar </button>
</form>
<a href="{% url 'BankAccountsListView' %}" class="btn btn-secondary mt-3 "> Cancelar e Voltar </a>
</div>
</div>
</div>
{% endblock %}