fix: bug retorno do obs da order no tootip do viewcomanda

This commit is contained in:
2025-03-25 19:08:00 -03:00
parent cac46a3e52
commit add06a2a67
97 changed files with 14 additions and 14 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -14,6 +14,7 @@ import asyncio
import websockets
async def enviar_mensagem(msg):
try:
uri = "ws://192.168.1.150:8765"
async with websockets.connect(uri) as websocket:
await websocket.send(msg)
@@ -21,6 +22,8 @@ async def enviar_mensagem(msg):
resposta = await websocket.recv()
print(f"< Recebido: {resposta}")
except Exception as e:
print(f"Erro ao enviar mensagem: {e}")

View File

@@ -59,11 +59,8 @@ def has_group(user, group_name):
@register.filter(name='obsOrder')
def obsOrder(id):
product_comanda_obj = ProductComanda.objects.get(pk=id) # Supondo que você tenha o ID do ProductComanda
productComanda_obj = ProductComanda.objects.get(pk=id)
order = Order.objects.get(productComanda=productComanda_obj)
return order.obs
produto_associado = product_comanda_obj.product
pedidos_relacionados = Order.objects.filter(id_product=produto_associado)
pedido = pedidos_relacionados[0]
return pedido.obs

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.