feat: pagamento parcial comanda part1

This commit is contained in:
2025-02-15 15:38:43 -03:00
parent ecbeba02e8
commit a86bd2fb45
11 changed files with 82 additions and 22 deletions

View File

@@ -33,6 +33,11 @@ function modal_payment_comanda() {
recebido = document.getElementById('recebido')
recebido.focus()
}
function modal_payment_parcial() {
document.getElementById('payment-parcial').style.display = 'block';
// recebido = document.getElementById('recebido')
// recebido.focus()
}
function modal_conta_client() {

View File

@@ -1,5 +1,9 @@
document.cookie = `fila=0`;
// document.cookie = `fila=0`;
function reloadPage(){
setTimeout(function() {
location.reload();}, 4000);
}
function openTab(evt, etapa) {
var i, tabcontent, tablinks;
@@ -80,6 +84,7 @@ function notificacao(){
mostrarNotificacao(data['titulo'], data['corpo'],'Cozinha')
texto = new SpeechSynthesisUtterance(data['corpo']+', '+data['titulo']+'.');
window.speechSynthesis.speak(texto);
reloadPage();
}else{
console.log(data['notificacao'])