mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
fix: bug ao add product in comanda
This commit is contained in:
Binary file not shown.
@@ -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)
|
||||
|
||||
|
||||
Binary file not shown.
@@ -59,8 +59,11 @@ def has_group(user, group_name):
|
||||
|
||||
@register.filter(name='obsOrder')
|
||||
def obsOrder(id):
|
||||
productComanda_obj = ProductComanda.objects.get(pk=id)
|
||||
order = Order.objects.get(productComanda=productComanda_obj)
|
||||
return order.obs
|
||||
try:
|
||||
productComanda_obj = ProductComanda.objects.get(pk=id)
|
||||
order = Order.objects.get(productComanda=productComanda_obj)
|
||||
return order.obs
|
||||
except:
|
||||
return ''
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1,4 +1,6 @@
|
||||
{% load static %}
|
||||
{% load custom_filter_tag %}
|
||||
|
||||
|
||||
<tr>
|
||||
<th style="text-align: left;"><b>Produto</b></th>
|
||||
|
||||
Reference in New Issue
Block a user