Compare commits

...

5 Commits

Author SHA1 Message Date
root 12e3d081a7 fix: openPrintPreview 9px bold titulo 20px
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
2026-07-02 20:23:13 +00:00
root ad967bf0a1 fix: openPrintPreview 12px bold titulo 20px
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
2026-07-02 20:18:51 +00:00
root d39cc7518b fix: openPrintPreview 15px bold titulo 20px
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
2026-07-02 20:13:10 +00:00
root 52bec03988 fix: botao Editar na tabela agora pede senha antes de abrir
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
2026-07-02 20:07:05 +00:00
root 9639048bf7 fix: askPassword aceita config.dynamic_password
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
2026-07-02 19:38:33 +00:00
+13 -12
View File
@@ -1798,21 +1798,21 @@ function openPrintPreview(data, mode) {
const previewStyle = ` const previewStyle = `
<style> <style>
body { width: 80mm; margin: 0 auto; font-family: 'Courier New', monospace; font-size: 18px; background: #fff; padding: 10px; font-weight: bold; } body { width: 80mm; margin: 0 auto; font-family: 'Courier New', monospace; font-size: 9px; background: #fff; padding: 10px; font-weight: bold; }
.header { text-align: center; margin-bottom: 8px; } .header { text-align: center; margin-bottom: 8px; }
.header h1 { font-size: 24px; font-weight: bold; } .header h1 { font-size: 20px; font-weight: bold; }
.header h2 { font-size: 18px; font-weight: bold; } .header h2 { font-size: 9px; font-weight: bold; }
hr { border: none; border-top: 1px dashed #000; margin: 6px 0; } hr { border: none; border-top: 1px dashed #000; margin: 6px 0; }
.section-title { font-weight: bold; font-size: 18px; border-top: 1px dashed #000; padding-top: 4px; margin-top: 6px; } .section-title { font-weight: bold; font-size: 9px; border-top: 1px dashed #000; padding-top: 4px; margin-top: 6px; }
.row { display: flex; justify-content: space-between; padding: 2px 0; font-size: 18px; font-weight: bold; } .row { display: flex; justify-content: space-between; padding: 2px 0; font-size: 9px; font-weight: bold; }
table { width: 100%; border-collapse: collapse; font-size: 18px; font-weight: bold; } table { width: 100%; border-collapse: collapse; font-size: 9px; font-weight: bold; }
td { padding: 2px 4px; vertical-align: top; font-weight: bold; } td { padding: 2px 4px; vertical-align: top; font-weight: bold; }
td:nth-child(2) { text-align: right; } td:nth-child(2) { text-align: right; }
td:nth-child(3) { text-align: right; color: #555; font-size: 16px; } td:nth-child(3) { text-align: right; color: #555; font-size: 8px; }
.grand-total { font-size: 24px; font-weight: bold; text-align: center; padding: 6px; border: 2px solid #000; margin: 8px 0; } .grand-total { font-size: 20px; font-weight: bold; text-align: center; padding: 6px; border: 2px solid #000; margin: 8px 0; }
.obs { font-size: 16px; color: #555; margin-top: 6px; white-space: pre-wrap; font-weight: normal; } .obs { font-size: 8px; color: #555; margin-top: 6px; white-space: pre-wrap; font-weight: normal; }
.footer { text-align: center; font-size: 14px; color: #555; margin-top: 8px; font-weight: normal; } .footer { text-align: center; font-size: 8px; color: #555; margin-top: 8px; font-weight: normal; }
@media print { body { background: #fff; font-size: 18px !important; font-weight: bold !important; } } @media print { body { background: #fff; font-size: 9px !important; font-weight: bold !important; } }
</style> </style>
`; `;
@@ -2366,6 +2366,7 @@ window.abrirEditaFechamentoIndex = async function(idx) {
} }
closeConsultaModal(); closeConsultaModal();
if (!await askPassword()) return;
window.abrirEditaFechamento(full); window.abrirEditaFechamento(full);
}; };
@@ -2694,7 +2695,7 @@ function askPassword() {
inp.addEventListener('keydown', e => { if (e.key === 'Enter') document.getElementById('pw-ok-btn').click(); }); inp.addEventListener('keydown', e => { if (e.key === 'Enter') document.getElementById('pw-ok-btn').click(); });
document.getElementById('pw-ok-btn').addEventListener('click', () => { document.getElementById('pw-ok-btn').addEventListener('click', () => {
const val = document.getElementById('pw-input').value; const val = document.getElementById('pw-input').value;
if (val === fixedPw || val === dynPw) { if (val === fixedPw || val === dynPw || val === config.dynamic_password) {
document.getElementById('pw-modal').remove(); document.getElementById('pw-modal').remove();
resolve(true); resolve(true);
} else { } else {