mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
bug: add product balcao
This commit is contained in:
@@ -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.
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user