first commit
This commit is contained in:
24
Base/templates/Login/Dashboard/Professional.html
Normal file
24
Base/templates/Login/Dashboard/Professional.html
Normal 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>
|
||||
24
Base/templates/Login/Dashboard/Service.html
Normal file
24
Base/templates/Login/Dashboard/Service.html
Normal 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>
|
||||
23
Base/templates/Login/Dashboard/Stone.html
Normal file
23
Base/templates/Login/Dashboard/Stone.html
Normal 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>
|
||||
22
Base/templates/Login/Dashboard/Sum_of_product.html
Normal file
22
Base/templates/Login/Dashboard/Sum_of_product.html
Normal 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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
28
Base/templates/Login/Dashboard/index.html
Normal file
28
Base/templates/Login/Dashboard/index.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user