fix: bug ao add product in comanda

This commit is contained in:
2025-03-26 19:50:03 -03:00
parent a2c1c2bcf0
commit ef24e3f3bc
6 changed files with 10 additions and 4 deletions

View File

@@ -86,7 +86,8 @@ def addProduct(request, product_id, comanda_id):
'id':order.id,
'speak': f'Novo pedido! {product.name}, para {comanda.name}.'
})
asyncio.run(enviar_mensagem(msg))
# asyncio.run(enviar_mensagem(msg))
consumo = ProductComanda.objects.filter(comanda=comanda_id)
valores = somar(consumo,comanda)