modified: templates/checkout.html

This commit is contained in:
2026-03-09 10:20:59 -03:00
parent e101833c7d
commit d7ef1573e5
2 changed files with 4 additions and 16 deletions

3
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"python-envs.defaultEnvManager": "ms-python.python:pyenv"
}

View File

@@ -273,7 +273,7 @@
</div>
</div>
</div>
<div id="receipt-print-zone">
<div id="receipt-print-zone" class="d-none d-print-block">
<div class="receipt-header">
<h3 style="margin: 0; font-weight: 800;">SekiPOS</h3>
<div style="font-size: 10px; margin-bottom: 5px;">Comprobante de Venta</div>
@@ -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}`;