diff --git a/gestaoRaul/balcao/__pycache__/views.cpython-310.pyc b/gestaoRaul/balcao/__pycache__/views.cpython-310.pyc index 1c90ca4..20f1b17 100644 Binary files a/gestaoRaul/balcao/__pycache__/views.cpython-310.pyc and b/gestaoRaul/balcao/__pycache__/views.cpython-310.pyc differ diff --git a/gestaoRaul/balcao/views.py b/gestaoRaul/balcao/views.py index 0be8e4f..e3856f1 100644 --- a/gestaoRaul/balcao/views.py +++ b/gestaoRaul/balcao/views.py @@ -1,4 +1,4 @@ -from django.shortcuts import render, redirect +from django.shortcuts import render from comandas.models import Comanda, ProductComanda from products.models import Product @@ -20,7 +20,6 @@ def viewBalcao(request): for p in products: if p.name == produto['nome'] and p.active == True: products_ordenados.append(p) - total = 0 for produto in consumo: diff --git a/gestaoRaul/comandas/__pycache__/htmx_views.cpython-310.pyc b/gestaoRaul/comandas/__pycache__/htmx_views.cpython-310.pyc index 54b7e70..a2a96cc 100644 Binary files a/gestaoRaul/comandas/__pycache__/htmx_views.cpython-310.pyc and b/gestaoRaul/comandas/__pycache__/htmx_views.cpython-310.pyc differ diff --git a/gestaoRaul/comandas/__pycache__/views.cpython-310.pyc b/gestaoRaul/comandas/__pycache__/views.cpython-310.pyc index 8d2635e..8419fad 100644 Binary files a/gestaoRaul/comandas/__pycache__/views.cpython-310.pyc and b/gestaoRaul/comandas/__pycache__/views.cpython-310.pyc differ diff --git a/gestaoRaul/comandas/htmx_views.py b/gestaoRaul/comandas/htmx_views.py index 15c1ad3..f3831c2 100644 --- a/gestaoRaul/comandas/htmx_views.py +++ b/gestaoRaul/comandas/htmx_views.py @@ -1,4 +1,4 @@ -from django.shortcuts import render, redirect, HttpResponse +from django.shortcuts import render, redirect from comandas.models import Comanda, ProductComanda from products.models import Product @@ -38,7 +38,6 @@ def closeComanda(request, comanda_id): comanda = Comanda.objects.get(id=comanda_id) comanda.status = "PAYING" comanda.save() - # return redirect('back') def reopenComanda(request, comanda_id): @@ -48,7 +47,6 @@ def reopenComanda(request, comanda_id): else: comanda.status = "OPEN" comanda.save() - # return redirect('back') def paymentComanda(request, comanda_id): typePayment = TypePay.objects.get(id=1) diff --git a/gestaoRaul/comandas/templates/viewcomanda.html b/gestaoRaul/comandas/templates/viewcomanda.html index 844ba61..afc3acb 100644 --- a/gestaoRaul/comandas/templates/viewcomanda.html +++ b/gestaoRaul/comandas/templates/viewcomanda.html @@ -2,15 +2,13 @@ {% load static %} - - {% block 'title' %} + Detalhes {{comanda.name}} + {% endblock %} - - {% block 'head' %} {% endblock %} @@ -25,13 +23,13 @@ Detalhes {{comanda.name}} {% if comanda.status != 'OPEN'%} disabled {% endif %} - >Adicionar Produto + >Add Produto + >Fechar Conta {% if comanda.status == 'PAYING' %} @@ -46,7 +44,7 @@ Detalhes {{comanda.name}} {% if comanda.status != 'OPEN'%} style="display: none;" {% endif %} - onclick="imprimirFichas()">Imprimir Fichas + onclick="imprimirFichas()">Fichas