From 2ed672c3c3ce73b24912466fe3eb3520429e6c22 Mon Sep 17 00:00:00 2001 From: consultoria-as Date: Fri, 26 Jun 2026 00:21:18 +0000 Subject: [PATCH] fix: agrega helper esc en accounting.js y placeholder para pagos a proveedor --- pos/static/js/accounting.js | 8 +++++++- pos/static/pwa/sw.js | 2 +- pos/templates/accounting.html | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pos/static/js/accounting.js b/pos/static/js/accounting.js index ffa0e92..a1935c4 100644 --- a/pos/static/js/accounting.js +++ b/pos/static/js/accounting.js @@ -25,6 +25,12 @@ const Accounting = (() => { function fmt(n) { return parseFloat(n || 0).toLocaleString('es-MX', { minimumFractionDigits: 2, maximumFractionDigits: 2 }); } + function esc(s) { + if (!s) return ''; + const d = document.createElement('div'); + d.textContent = s; + return d.innerHTML; + } // ---- Auth check ---- function checkAuth() { @@ -236,7 +242,7 @@ const Accounting = (() => { $${fmt(r.paid || 0)} $${fmt(r.balance || r.total)} ${statusBadge(status, label)} - + `; }).join(''); diff --git a/pos/static/pwa/sw.js b/pos/static/pwa/sw.js index 9307447..0d71275 100644 --- a/pos/static/pwa/sw.js +++ b/pos/static/pwa/sw.js @@ -6,7 +6,7 @@ // The fetch handler normalizes static asset URLs (strips ?v= query strings) // so templates can use cache-busting query params freely. -const CACHE_NAME = 'nexus-pos-v22'; +const CACHE_NAME = 'nexus-pos-v23'; const APP_SHELL = [ '/pos/static/css/tokens.css', diff --git a/pos/templates/accounting.html b/pos/templates/accounting.html index dd74beb..3ec94eb 100644 --- a/pos/templates/accounting.html +++ b/pos/templates/accounting.html @@ -499,7 +499,7 @@ - +