From 292d0b85d95a2e048949fab81abfd53ae8f5bb9c Mon Sep 17 00:00:00 2001 From: root Date: Tue, 30 Jun 2026 14:34:23 +0000 Subject: [PATCH] fix: fmtCell inline money formatting (remove fmtMoney ref) --- src/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.html b/src/index.html index 3128f7d..4d8b96a 100644 --- a/src/index.html +++ b/src/index.html @@ -2598,7 +2598,10 @@ function openEditModal(full) { // helper para fmt table cell const fmtCell = (v, isNum) => { if (v === null || v === undefined || v === '') return ''; - if (isNum) return fmtMoney(v); + if (isNum) { + const n = parseFloat(v); + return isNaN(n) ? '' : 'R$ ' + n.toLocaleString('pt-BR', { minimumFractionDigits: 2 }); + } return v; };