diff --git a/gestaoRaul/comandas/__pycache__/htmx_views.cpython-313.pyc b/gestaoRaul/comandas/__pycache__/htmx_views.cpython-313.pyc
index b7b10ac..4c6f6a3 100644
Binary files a/gestaoRaul/comandas/__pycache__/htmx_views.cpython-313.pyc and b/gestaoRaul/comandas/__pycache__/htmx_views.cpython-313.pyc differ
diff --git a/gestaoRaul/comandas/__pycache__/urls.cpython-313.pyc b/gestaoRaul/comandas/__pycache__/urls.cpython-313.pyc
index 706b9f3..e119cfb 100644
Binary files a/gestaoRaul/comandas/__pycache__/urls.cpython-313.pyc and b/gestaoRaul/comandas/__pycache__/urls.cpython-313.pyc differ
diff --git a/gestaoRaul/comandas/__pycache__/views.cpython-313.pyc b/gestaoRaul/comandas/__pycache__/views.cpython-313.pyc
index e068e05..acadf51 100644
Binary files a/gestaoRaul/comandas/__pycache__/views.cpython-313.pyc and b/gestaoRaul/comandas/__pycache__/views.cpython-313.pyc differ
diff --git a/gestaoRaul/comandas/htmx_views.py b/gestaoRaul/comandas/htmx_views.py
index f243484..8a90726 100644
--- a/gestaoRaul/comandas/htmx_views.py
+++ b/gestaoRaul/comandas/htmx_views.py
@@ -93,21 +93,6 @@ def addProduct(request, product_id, comanda_id):
return render(request, "htmx_components/comandas/htmx_list_products_in_comanda.html",{'config':config, 'valores':valores,'parcials':parcial,'consumo': consumo,'comanda':comanda})
-# @group_required(groupName='Garçom')
-# def editOrders(request, productComanda_id, obs):
-# order = Order.objects.get(productComanda=productComanda_id)
-# order.obs = obs
-# order.save()
-# msg = JsonResponse({
-# 'type': 'broadcast',
-# 'message': obs,
-# 'local':'cozinha',
-# 'tipo':'edit',
-# 'id':order.id,
-# 'speak': f'Pedido alterado! {order.id_product.name}, é {obs}.'
-# })
-# # asyncio.run(enviar_mensagem(msg))
-# return JsonResponse({'status': 'ok'})
@group_required(groupName='Garçom')
@@ -138,11 +123,7 @@ def removeProductComanda(request, productComanda_id):
return render(request, "htmx_components/comandas/htmx_list_products_in_comanda.html",{'config':config, 'valores': valores,'parcials':parcial,'consumo': consumo, 'comanda':comanda})
-@group_required(groupName='Garçom')
-def closeComanda(request, comanda_id):
- comanda = Comanda.objects.get(id=comanda_id)
- comanda.status = "PAYING"
- comanda.save()
+
@group_required(groupName='Gerente')
diff --git a/gestaoRaul/comandas/templates/viewcomanda.html b/gestaoRaul/comandas/templates/viewcomanda.html
index 54f8db2..a70adac 100644
--- a/gestaoRaul/comandas/templates/viewcomanda.html
+++ b/gestaoRaul/comandas/templates/viewcomanda.html
@@ -28,27 +28,32 @@ Detalhes {{comanda.name}}
{% endif %}
>Add Produto
-
{% if comanda.status == 'PAYING' or comanda.status == 'FIADO'%}
-
- {% else %}
+
+ {% else %}
+
+
{% endif %}
- {% if comanda.status != 'OPEN'%}
-
- {% endif %}
+ onclick="imprimirConta()">Imprimir Conta
{% if user|groupUser:"Gerente" %}
-