trocado addProduct de htmx por ajax

This commit is contained in:
2024-12-27 17:07:23 -03:00
parent a1866c842c
commit 1beb2e00b2
6 changed files with 37 additions and 17 deletions

View File

@@ -30,7 +30,7 @@ def addProductBalcao(request, product_id, comanda_id, qtd):
total += produto.product.price
return render(request, "htmx_components/htmx_list_products_in_balcao.html",{'consumo': consumo, 'total': total})
@csrf_exempt
def addProductBalcaoTeclado(request, product_id, comanda_id, qtd):
qtd = int(request.COOKIES.get('qtd'))
for i in range(qtd):