diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..a456028 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python-envs.defaultEnvManager": "ms-python.python:pyenv" +} \ No newline at end of file diff --git a/templates/checkout.html b/templates/checkout.html index 0b34ca0..3497218 100644 --- a/templates/checkout.html +++ b/templates/checkout.html @@ -273,7 +273,7 @@ -
+

SekiPOS

Comprobante de Venta
@@ -493,21 +493,6 @@ let pendingProduct = null; const clp = new Intl.NumberFormat('es-CL', { style: 'currency', currency: 'CLP', minimumFractionDigits: 0 }); - {% comment %} socket.on('new_scan', (product) => { - // Update the Preview Card - document.getElementById('display-name').innerText = product.name; - document.getElementById('display-barcode').innerText = product.barcode; - document.getElementById('display-img').src = product.image || './static/placeholder.png'; - - if (product.unit === 'kg') { - pendingProduct = product; - new bootstrap.Modal('#weightModal').show(); - setTimeout(() => document.getElementById('weight-input').focus(), 500); - } else { - addToCart(product, 1); - } - }); {% endcomment %} - socket.on('scan_error', (data) => { if (confirm("Producto no encontrado. ¿Deseas crearlo?")) { window.location.href = `/?barcode=${data.barcode}`;