feat: alert product add comanda

This commit is contained in:
2025-01-05 18:15:18 -03:00
parent 26af988846
commit 7ab0e99e6b
3 changed files with 18 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
function openModal() {
document.getElementById('Modal-add-product').style.display = 'block';
}
@@ -5,6 +7,7 @@ function openModal() {
function open_remove_product_comanda() {
document.getElementById('remove-product-comanda').style.display = 'block';
// alert('Produto removido com sucesso!');
}
function modal_payment_comanda() {
@@ -117,6 +120,20 @@ function teclado(event){
// }
}
function addProductComanda(productId) {
alert('Produto adicionado com sucesso!');
// const productName = document.getElementById('productName').value;
// const productPrice = document.getElementById('productPrice').value;
// const productDescription = document.getElementById('productDescription').value;
// const productqtd = document.getElementById('productqtd').value;
// const categorie = document.getElementById('select-categorie').value;
// const url = `/comandas/addProductComanda/${productName}/${productPrice}/${productDescription}/${productqtd}/${categorie}/`;
// window.location.href = url;
}
document.getElementById('openModal').addEventListener('click', openModal);
document.getElementById('productForm').addEventListener('submit', function(event) {