redirect quando cria uma comanda

This commit is contained in:
2025-02-18 22:32:41 -03:00
parent 44a9c694dc
commit f0c956d2ba
7 changed files with 30 additions and 27 deletions

View File

@@ -176,20 +176,20 @@ function troco(){
}
document.onkeydown = teclado
// document.onkeydown = teclado
function teclado(event){
if (document.getElementById('payment-comanda').style.display == 'block'){
if (event.keyCode == 13){
troco()
}else{
console.log(event.keyCode)
}
}else{
console.log('')
}
// function teclado(event){
// if (document.getElementById('payment-comanda').style.display == 'block'){
// if (event.keyCode == 13){
// troco()
// }else{
// console.log(event.keyCode)
// }
// }else{
// console.log('')
// }
}
// }
function addOrder(){
obs = document.getElementById('obs').value
var id = document.getElementById('id-temp').value