diff --git a/assets/js/app.js b/assets/js/app.js index 3b396ec..630a50a 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -9367,17 +9367,10 @@ function showAddForm() { ${currentProduct.weight_info ? `

${escapeHtml(currentProduct.weight_info)}

` : ''} `; - // Set unit selector const unit = currentProduct.unit || 'pz'; const unitSelect = document.getElementById('add-unit'); unitSelect.value = unit; - - function showAddForm() { - renderLocationButtons('location-selector', document.getElementById('add-location')?.value || 'dispensa', 'selectLocation'); - const catIcon = CATEGORY_ICONS[mapToLocalCategory(currentProduct.category, currentProduct.name)] || '📦'; - - document.getElementById('add-quantity').value = unit === 'conf' ? (currentProduct._confCount || currentProduct.last_qty || 1) : (currentProduct.default_quantity || 1); document.getElementById('add-quantity').dataset.manuallySet = 'false';