bug: add product balcao

This commit is contained in:
2025-01-16 17:00:05 -03:00
parent b403e5fc72
commit 1999701dcf
3 changed files with 1 additions and 2 deletions

View File

@@ -18,6 +18,7 @@
<div class="grid-container"> <div class="grid-container">
<div style="text-align: center;"> <div style="text-align: center;">
<h1>Venda Balcão</h1> <h1>Venda Balcão</h1>
<input hidden type="text" name="id-comanda-balcao" id="id-comanda-balcao" value="{{comanda.id}}">
<div> <div>
<button id="pagarComanda" onclick="modal_payment_comanda()" <button id="pagarComanda" onclick="modal_payment_comanda()"

Binary file not shown.

View File

@@ -168,7 +168,6 @@ function addProductClick(productId) {
fieldQtd = document.getElementById('qtd-product'); fieldQtd = document.getElementById('qtd-product');
var qtd = fieldQtd.value; var qtd = fieldQtd.value;
var comanda_id = document.getElementById("id-comanda-balcao").value; var comanda_id = document.getElementById("id-comanda-balcao").value;
console.log()
fetch(`/balcao/addProductBalcaoTeclado${productId}/${comanda_id}/${qtd}`, { fetch(`/balcao/addProductBalcaoTeclado${productId}/${comanda_id}/${qtd}`, {
method: 'GET', method: 'GET',
headers: { headers: {
@@ -188,7 +187,6 @@ function addProductClick(productId) {
receber.removeAttribute('disabled'); receber.removeAttribute('disabled');
imprimir.removeAttribute('disabled'); imprimir.removeAttribute('disabled');
search.focus() search.focus()
// search.setAttribute('autofocus');
fieldQtd.value = 1; fieldQtd.value = 1;
setTimeout(function() { setTimeout(function() {