Compare commits

...

4 Commits

Author SHA1 Message Date
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
root b1585af3f9 fix: fonte 18px bold nos relatorios
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:31:56 +00:00
root 155782f50a fix: fonte 20px bold nos relatorios
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:25:09 +00:00
+32 -31
View File
@@ -160,7 +160,7 @@
padding: 10px 16px; display: flex; justify-content: space-between; align-items: center;
}
.dif-label { font-size: 12px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.5px; }
.dif-value { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dif-value { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dif-value.pos, .dif-value.zero { color: var(--green); }
.dif-value.neg { color: var(--red); }
@@ -1389,28 +1389,28 @@ function buildConfirmHTML(data) {
<title>Fechamento de Caixa</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Courier New', monospace; font-size: 22px; font-weight: bold !important; width: 80mm; margin: 0 auto; padding: 8px; font-weight: bold !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
body { font-family: 'Courier New', monospace; font-size: 18px; font-weight: bold !important; width: 80mm; margin: 0 auto; padding: 8px; font-weight: bold !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.header { text-align: center; margin-bottom: 8px; }
.header h1 { font-size: 24px; font-weight: bold !important; }
.header h2 { font-size: 22px; font-weight: bold !important; }
.header h2 { font-size: 18px; font-weight: bold !important; }
hr { border: none; border-top: 2px solid #000; margin: 6px 0; }
.section-title { font-weight: bold !important; font-size: 22px; border-top: 2px solid #000; padding-top: 4px; margin-top: 8px; }
.row { display: flex; justify-content: space-between; padding: 2px 0; font-size: 22px; font-weight: bold !important; }
.section-title { font-weight: bold !important; font-size: 18px; border-top: 2px solid #000; padding-top: 4px; margin-top: 8px; }
.row { display: flex; justify-content: space-between; padding: 2px 0; font-size: 18px; font-weight: bold !important; }
.row.total-row { font-weight: bold !important; }
.cart-table { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: 22px; margin-top: 4px; font-weight: bold !important; }
.cart-table th { font-weight: bold !important; border-bottom: 2px solid #000; padding: 3px; font-size: 22px; width: 25%; }
.cart-table td { padding: 3px 5px; text-align: right; font-weight: bold !important; font-size: 22px; }
.cart-table { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: 18px; margin-top: 4px; font-weight: bold !important; }
.cart-table th { font-weight: bold !important; border-bottom: 2px solid #000; padding: 3px; font-size: 18px; width: 25%; }
.cart-table td { padding: 3px 5px; text-align: right; font-weight: bold !important; font-size: 18px; }
.cart-table td:first-child { text-align: left; }
.cart-table tr.total-row { font-weight: bold !important; border-top: 2px solid #000; }
.subtotal { font-size: 22px; margin-top: 4px; }
.subtotal { font-size: 18px; margin-top: 4px; }
.subtotal .row { padding: 1px 0; font-weight: bold !important; }
.diff-ok { color: #2e7d32; font-weight: bold !important; }
.diff-bad { color: #c0272d; font-weight: bold !important; }
.obs { font-size: 16px; color: #555; margin-top: 6px; white-space: pre-wrap; font-weight: bold !important; }
.footer { text-align: center; font-size: 14px; color: #555; margin-top: 8px; font-weight: bold !important; }
@media print { body { background: #fff; font-weight: bold !important; font-size: 22px !important; } }
</head><body>
<div class="header">
@media print { body { background: #fff; font-weight: bold !important; font-size: 18px !important; } }
</head><body>
<div class="header">
<h1>${data.loja}</h1>
<h2>Fechamento de Caixa</h2>
</div>
@@ -1609,26 +1609,26 @@ function buildPrintHTML(data) {
<title>Fechamento de Caixa</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Courier New', monospace; font-size: 22px; font-weight: bold !important; width: 80mm; margin: 0 auto; padding: 8px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
body { font-family: 'Courier New', monospace; font-size: 18px; font-weight: bold !important; width: 80mm; margin: 0 auto; padding: 8px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.header { text-align: center; margin-bottom: 8px; }
.header h1 { font-size: 24px; font-weight: bold !important; }
.header h2 { font-size: 22px; font-weight: bold !important; }
.header h2 { font-size: 18px; font-weight: bold !important; }
hr { border: none; border-top: 2px solid #000; margin: 6px 0; }
.section-title { font-weight: bold !important; font-size: 22px; border-top: 2px solid #000; padding-top: 4px; margin-top: 8px; }
.row { display: flex; justify-content: space-between; padding: 2px 0; font-size: 22px; font-weight: bold !important; }
.section-title { font-weight: bold !important; font-size: 18px; border-top: 2px solid #000; padding-top: 4px; margin-top: 8px; }
.row { display: flex; justify-content: space-between; padding: 2px 0; font-size: 18px; font-weight: bold !important; }
.row.total-row { font-weight: bold !important; }
.cart-table { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: 22px; margin-top: 4px; font-weight: bold !important; }
.cart-table th { font-weight: bold !important; border-bottom: 2px solid #000; padding: 3px; font-size: 22px; width: 25%; }
.cart-table td { padding: 3px 5px; text-align: right; font-weight: bold !important; font-size: 22px; }
.cart-table { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: 18px; margin-top: 4px; font-weight: bold !important; }
.cart-table th { font-weight: bold !important; border-bottom: 2px solid #000; padding: 3px; font-size: 18px; width: 25%; }
.cart-table td { padding: 3px 5px; text-align: right; font-weight: bold !important; font-size: 18px; }
.cart-table td:first-child { text-align: left; }
.cart-table tr.total-row { font-weight: bold !important; border-top: 2px solid #000; }
.subtotal { font-size: 22px; margin-top: 4px; }
.subtotal { font-size: 18px; margin-top: 4px; }
.subtotal .row { padding: 1px 0; font-weight: bold !important; }
.diff-ok { color: #2e7d32; font-weight: bold !important; }
.diff-bad { color: #c0272d; font-weight: bold !important; }
.obs { font-size: 16px; color: #555; margin-top: 6px; white-space: pre-wrap; font-weight: bold !important; }
.footer { text-align: center; font-size: 14px; color: #555; margin-top: 8px; font-weight: bold !important; }
@media print { body { background: #fff; font-weight: bold !important; font-size: 22px !important; } }
@media print { body { background: #fff; font-weight: bold !important; font-size: 18px !important; } }
</style>
</head><body>
<div class="header">
@@ -1738,13 +1738,13 @@ function buildReportHTML(data) {
<title>Relatório de Fechamento</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Courier New', monospace; font-size: 22px; font-weight: bold; width: 80mm; margin: 0 auto; padding: 8px; }
body { font-family: 'Courier New', monospace; font-size: 18px; font-weight: bold; width: 80mm; margin: 0 auto; padding: 8px; }
.header { text-align: center; margin-bottom: 10px; }
hr { border: none; border-top: 1px dashed #000; margin: 6px 0; }
.row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 22px; font-weight: bold; }
.row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 18px; font-weight: bold; }
.row .val { font-weight: bold; }
.footer { text-align: center; font-size: 13px; color: #555; margin-top: 8px; }
@media print { body { margin: 0; font-size: 22px !important; font-weight: bold !important; } }
@media print { body { margin: 0; font-size: 18px !important; font-weight: bold !important; } }
</style>
</head><body>
<div class="header">
@@ -1798,21 +1798,21 @@ function openPrintPreview(data, mode) {
const previewStyle = `
<style>
body { width: 80mm; margin: 0 auto; font-family: 'Courier New', monospace; font-size: 22px; background: #fff; padding: 10px; font-weight: bold; }
body { width: 80mm; margin: 0 auto; font-family: 'Courier New', monospace; font-size: 18px; background: #fff; padding: 10px; font-weight: bold; }
.header { text-align: center; margin-bottom: 8px; }
.header h1 { font-size: 24px; font-weight: bold; }
.header h2 { font-size: 22px; font-weight: bold; }
.header h2 { font-size: 18px; font-weight: bold; }
hr { border: none; border-top: 1px dashed #000; margin: 6px 0; }
.section-title { font-weight: bold; font-size: 22px; border-top: 1px dashed #000; padding-top: 4px; margin-top: 6px; }
.row { display: flex; justify-content: space-between; padding: 2px 0; font-size: 22px; font-weight: bold; }
table { width: 100%; border-collapse: collapse; font-size: 22px; font-weight: bold; }
.section-title { font-weight: bold; font-size: 18px; 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; }
table { width: 100%; border-collapse: collapse; font-size: 18px; font-weight: bold; }
td { padding: 2px 4px; vertical-align: top; font-weight: bold; }
td:nth-child(2) { text-align: right; }
td:nth-child(3) { text-align: right; color: #555; font-size: 16px; }
.grand-total { font-size: 24px; 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; }
.footer { text-align: center; font-size: 14px; color: #555; margin-top: 8px; font-weight: normal; }
@media print { body { background: #fff; font-size: 22px !important; font-weight: bold !important; } }
@media print { body { background: #fff; font-size: 18px !important; font-weight: bold !important; } }
</style>
`;
@@ -2366,6 +2366,7 @@ window.abrirEditaFechamentoIndex = async function(idx) {
}
closeConsultaModal();
if (!await askPassword()) return;
window.abrirEditaFechamento(full);
};
@@ -2694,7 +2695,7 @@ function askPassword() {
inp.addEventListener('keydown', e => { if (e.key === 'Enter') document.getElementById('pw-ok-btn').click(); });
document.getElementById('pw-ok-btn').addEventListener('click', () => {
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();
resolve(true);
} else {