From 7e3610397e635772e4f788461b1c26536c3a40c0 Mon Sep 17 00:00:00 2001 From: Fernando Date: Sun, 20 Oct 2024 19:40:42 -0300 Subject: [PATCH] fix --- public/js/sales.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/js/sales.js b/public/js/sales.js index 31dc541..0efd4bb 100644 --- a/public/js/sales.js +++ b/public/js/sales.js @@ -783,7 +783,6 @@ document.addEventListener('click', async (event) => { if (productData.success == true) { productData = productData.data - editTypeProduct = productData.typeProduct function formatarMoeda(numeroCentavos) { const valorReal = numeroCentavos / 100; return valorReal.toLocaleString('pt-BR', { style: 'currency', currency: 'BRL' }); @@ -804,6 +803,7 @@ document.addEventListener('click', async (event) => { document.getElementById('produtos-estoque-edit-normal').style.display = 'none' document.getElementById('produtos-estoque-edit-single').style.display = 'none' let typeProduct = 'typeProduct' in productData ? productData.typeProduct : 'normal' + editTypeProduct = typeProduct if (typeProduct == 'normal') { document.getElementById('produtos-estoque-edit-normal').style.display = 'flex' document.getElementById('produtos-estoque-edit-normal-txt-title').value = productData.estoqueModel.conteudo[0].title @@ -890,7 +890,6 @@ document.getElementById('save-new-product').addEventListener('click', async () = if (document.getElementById('new-background-input').files[0]) { formData.append('backGround', document.getElementById('new-background-input').files[0]); } - console.log(editTypeProduct); switch (editTypeProduct) { case 'normal':