diff --git a/comandos.txt b/comandos.txt index dc64fce..4158d05 100644 --- a/comandos.txt +++ b/comandos.txt @@ -7,3 +7,5 @@ python manage.py startapp polls python manage.py makemigrations python manage.py migrate python manage.py createsuperuser +pip freeze > requirements.txt +pip install -r requirements.txt diff --git a/gestaoRaul/comandas/__pycache__/views.cpython-310.pyc b/gestaoRaul/comandas/__pycache__/views.cpython-310.pyc index 48f954d..ee11edb 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/views.py b/gestaoRaul/comandas/views.py index 5963bf9..e94b02d 100644 --- a/gestaoRaul/comandas/views.py +++ b/gestaoRaul/comandas/views.py @@ -13,6 +13,8 @@ from mesas.models import Mesa from gestaoRaul.decorators import group_required + + @group_required(groupName='Garçom') def comandas(request): comandas = Comanda.objects.filter(status__in=["OPEN", "PAYING"]) @@ -93,7 +95,7 @@ def notificacao(request): if len(ordersPronto) > cookiesPronto: return JsonResponse({ 'notificacao': 'true', - 'pronto':len(ordersPronto), + 'pronto':len(ordersPronto), 'titulo': ordersPronto[len(ordersPronto)-1].id_comanda.name, 'corpo': ordersPronto[len(ordersPronto)-1].id_product.name, }) diff --git a/gestaoRaul/db.sqlite3 b/gestaoRaul/db.sqlite3 index d8c3bbf..85f4c2f 100644 Binary files a/gestaoRaul/db.sqlite3 and b/gestaoRaul/db.sqlite3 differ diff --git a/gestaoRaul/gestaoRaul/__pycache__/settings.cpython-310.pyc b/gestaoRaul/gestaoRaul/__pycache__/settings.cpython-310.pyc index a92cab9..53050f7 100644 Binary files a/gestaoRaul/gestaoRaul/__pycache__/settings.cpython-310.pyc and b/gestaoRaul/gestaoRaul/__pycache__/settings.cpython-310.pyc differ diff --git a/gestaoRaul/gestaoRaul/settings.py b/gestaoRaul/gestaoRaul/settings.py index 50d457e..d56e88a 100644 --- a/gestaoRaul/gestaoRaul/settings.py +++ b/gestaoRaul/gestaoRaul/settings.py @@ -55,6 +55,7 @@ INSTALLED_APPS = [ 'balcao', 'orders', 'login', + 'django_extensions', ] MIDDLEWARE = [ diff --git a/gestaoRaul/requirements.txt b/gestaoRaul/requirements.txt index 0b18964..81dd698 100644 Binary files a/gestaoRaul/requirements.txt and b/gestaoRaul/requirements.txt differ diff --git a/gestaoRaul/templates/static/comandas/js/viewcomanda.js b/gestaoRaul/templates/static/comandas/js/viewcomanda.js index efb632f..a41347c 100644 --- a/gestaoRaul/templates/static/comandas/js/viewcomanda.js +++ b/gestaoRaul/templates/static/comandas/js/viewcomanda.js @@ -174,11 +174,7 @@ function teclado(event){ console.log(event.keyCode) } }else{ - if (event.keyCode == 13){ - troco() - }else{ - console.log('') - } + console.log('') } }