fix: api pagamento multipla comandas com dominio

This commit is contained in:
2025-06-25 12:41:25 -03:00
parent d7013f0ab8
commit a7cbf2da09
4 changed files with 2 additions and 3 deletions

Binary file not shown.

View File

@@ -164,8 +164,7 @@ async function enviarComandasSelecionadas() {
return; return;
} }
const response = await fetch('/clients/payDebt', {
const response = await fetch('http://192.168.1.150:8001/clients/payDebt', {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',

View File

@@ -6,7 +6,7 @@ function openModal() {
if (textField) { if (textField) {
setTimeout(() => { setTimeout(() => {
textField.focus(); textField.focus();
}, 100); // 50ms de delay (ajuste conforme necessário) }, 500); // 50ms de delay (ajuste conforme necessário)
} }
textField.value = ''; textField.value = '';
} }