v21: tauri resources config, all JS fixes tested
Build Fechamento de Caixa / build (macos-14, app) (push) Has been cancelled
Build Fechamento de Caixa / build (ubuntu-22.04, deb) (push) Has been cancelled
Build Fechamento de Caixa / build (windows-2022, msi) (push) Has been cancelled

This commit is contained in:
root
2026-06-22 15:56:05 +00:00
parent be422fa585
commit adee99d8ad
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -28,7 +28,7 @@
}, },
"bundle": { "bundle": {
"active": true, "active": true,
"targets": "all", "targets": ["nsis"],
"icon": [ "icon": [
"icons/32x32.png", "icons/32x32.png",
"icons/128x128.png", "icons/128x128.png",
@@ -38,6 +38,9 @@
], ],
"windows": { "windows": {
"webviewInstallMode": { "type": "embedBootstrapper" } "webviewInstallMode": { "type": "embedBootstrapper" }
},
"resources": {
"../src/*": "./"
} }
} }
} }
+2 -2
View File
@@ -358,7 +358,7 @@
<!-- VALES --> <!-- VALES -->
<div class="section"> <div class="section">
<div class="section-header">💰 Vales (Funcionários)</div> <div class="section-header">💰 Vales (Funcionários)</div>
<table id="tbl-vales"><thead><tr><th>Nome</th><th>Obs</th><th>Valor (R$)</th><th style="width:26px"></th></tr></thead><tbody></tbody><tfoot><tr class="total-row"><td colspan="2">TOTAL</td><td class="num" id="total-vales">R$ 0,00</td><td></td></tr></tfoot></table> <table id="tbl-vales"><thead><tr><th>Nome</th><th>Valor (R$)</th><th style="width:26px"></th></tr></thead><tbody></tbody><tfoot><tr class="total-row"><td>TOTAL</td><td class="num" id="total-vales">R$ 0,00</td><td></td></tr></tfoot></table>
<button class="add-btn" data-tbl="tbl-vales">+ Adicionar vale</button> <button class="add-btn" data-tbl="tbl-vales">+ Adicionar vale</button>
</div> </div>
@@ -576,7 +576,7 @@ let estado = {
// ─── Helpers ────────────────────────────────────────────────────────────── // ─── Helpers ──────────────────────────────────────────────────────────────
const fmt = v => 'R$ ' + (parseFloat(v) || 0).toLocaleString('pt-BR', { minimumFractionDigits: 2 }); const fmt = v => 'R$ ' + (parseFloat(v) || 0).toLocaleString('pt-BR', { minimumFractionDigits: 2 });
const parseNum = v => parseFloat((v || '0').replace(/\./g,'').replace(',','.')) || 0; const parseNum = v => parseFloat((String(v) || '0').replace(/\./g,'').replace(',','.')) || 0;
const setText = (id, t) => { const e = document.getElementById(id); if (e) e.textContent = t; }; const setText = (id, t) => { const e = document.getElementById(id); if (e) e.textContent = t; };
const setVal = (id, v) => { const e = document.getElementById(id); if (e) e.value = v; }; const setVal = (id, v) => { const e = document.getElementById(id); if (e) e.value = v; };
const val = id => { const e = document.getElementById(id); return e ? e.value : ''; }; const val = id => { const e = document.getElementById(id); return e ? e.value : ''; };