From aa147885a8885c41a6c82f2d1dc9028bf25c4d0a Mon Sep 17 00:00:00 2001 From: root Date: Sun, 28 Jun 2026 01:52:50 +0000 Subject: [PATCH] =?UTF-8?q?v1.3.30:=20diferen=C3=A7a=20tela=20lan=C3=A7ame?= =?UTF-8?q?nto=20usa=20sysTotal=20(troco+credito+debito+alimentacao+vales+?= =?UTF-8?q?receber+pix+pixcnpj)=20-=20saldo=5Fesperado=20-=20cancelamentos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.html b/src/index.html index b4785da..7aa4295 100644 --- a/src/index.html +++ b/src/index.html @@ -873,9 +873,9 @@ function updateTotals() { const fr = receberTotal; setText('fech-total', fmt(fd + fc + fr)); - // Diferença = total_fechamento - saldo_esperado - cancelamentos + // Diferença = total_fechamento (sysTotal: troco+credito+debito+alimentacao+vales+receber+pixCartao+pixCnpj) - saldo_esperado - cancelamentos const cancelTotal = estado.cancelamentos.reduce((s,r) => s+(parseNum(r.valor||0)||0), 0); - const diff = (fd + fc + fr) - parseNum(val('f-saldo-esperado')) - cancelTotal; + const diff = sysTotal - parseNum(val('f-saldo-esperado')) - cancelTotal; const difEl = document.getElementById('diferenca'); const badgeEl = document.getElementById('dif-badge'); if (difEl) {