mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
feat: edit comanda
This commit is contained in:
@@ -3,6 +3,22 @@
|
||||
function openModal() {
|
||||
document.getElementById('Modal-add-product').style.display = 'block';
|
||||
}
|
||||
function openModalAlter() {
|
||||
document.getElementById('Modal-alter-comanda').style.display = 'block';
|
||||
var name = document.getElementById('name-comanda').innerText.replace('Nome: ','').replace(' | ', '')
|
||||
var mesa = document.getElementById('h-mesaId').value
|
||||
console.log(name)
|
||||
console.log(mesa)
|
||||
|
||||
var fildName = document.getElementById('nameComanda')
|
||||
fildName.value = name
|
||||
var fildMesa = document.getElementById('select-mesa')
|
||||
fildMesa.value = mesa
|
||||
}
|
||||
|
||||
function closeModalAlter() {
|
||||
document.getElementById('Modal-alter-comanda').style.display = 'none';
|
||||
}
|
||||
function openModalObs(id) {
|
||||
document.getElementById('modal-obs').style.display = 'block';
|
||||
idd = document.getElementById('id-temp').value = id;
|
||||
|
||||
Reference in New Issue
Block a user