diff --git a/src/index.html b/src/index.html
index 5b54792..0e9293f 100644
--- a/src/index.html
+++ b/src/index.html
@@ -1370,17 +1370,17 @@ function buildConfirmHTML(data) {
const al = cartAli_arr[i] || 0;
const px = cartPix_arr[i] || 0;
cartTableRows += `
- | ${cr > 0 ? fmt(cr) : '-'} |
- ${db > 0 ? fmt(db) : '-'} |
- ${al > 0 ? fmt(al) : '-'} |
- ${px > 0 ? fmt(px) : '-'} |
+ ${cr > 0 ? fmt(cr).replace('R$ ','') : '-'} |
+ ${db > 0 ? fmt(db).replace('R$ ','') : '-'} |
+ ${al > 0 ? fmt(al).replace('R$ ','') : '-'} |
+ ${px > 0 ? fmt(px).replace('R$ ','') : '-'} |
`;
}
cartTableRows += `
- | ${cartCred > 0 ? fmt(cartCred) : '-'} |
- ${cartDeb > 0 ? fmt(cartDeb) : '-'} |
- ${cartAli > 0 ? fmt(cartAli) : '-'} |
- ${cartPix > 0 ? fmt(cartPix) : '-'} |
+ ${cartCred > 0 ? fmt(cartCred).replace('R$ ','') : '-'} |
+ ${cartDeb > 0 ? fmt(cartDeb).replace('R$ ','') : '-'} |
+ ${cartAli > 0 ? fmt(cartAli).replace('R$ ','') : '-'} |
+ ${cartPix > 0 ? fmt(cartPix).replace('R$ ','') : '-'} |
`;
let html = `
@@ -1397,12 +1397,12 @@ function buildConfirmHTML(data) {
.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: 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 { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 4px; font-weight: bold !important; }
+ .cart-table th { font-weight: bold !important; border-bottom: 2px solid #000; padding: 2px 3px; font-size: 12px; width: 25%; }
+ .cart-table td { padding: 2px 3px; text-align: right; font-weight: bold !important; font-size: 12px; }
.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: 18px; margin-top: 4px; }
+ .subtotal { font-size: 12px; 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; }
@@ -1447,7 +1447,7 @@ ${cancelamentos_arr.map(c => `${c.numero ? `Nº ${c.numer
- | CRÉDITO | DÉBITO | ALIMENT. | PIX |
+ CRÉD | DÉBIT | ALIM | PIX |
@@ -1585,18 +1585,18 @@ function buildPrintHTML(data) {
const al = cartAli_arr[i] || 0;
const px = cartPix_arr[i] || 0;
cartTableRows += `
- | ${cr > 0 ? fmt(cr) : '-'} |
- ${db > 0 ? fmt(db) : '-'} |
- ${al > 0 ? fmt(al) : '-'} |
- ${px > 0 ? fmt(px) : '-'} |
+ ${cr > 0 ? fmt(cr).replace('R$ ','') : '-'} |
+ ${db > 0 ? fmt(db).replace('R$ ','') : '-'} |
+ ${al > 0 ? fmt(al).replace('R$ ','') : '-'} |
+ ${px > 0 ? fmt(px).replace('R$ ','') : '-'} |
`;
}
// Totals row
cartTableRows += `
- | ${cartCred > 0 ? fmt(cartCred) : '-'} |
- ${cartDeb > 0 ? fmt(cartDeb) : '-'} |
- ${cartAli > 0 ? fmt(cartAli) : '-'} |
- ${cartPix > 0 ? fmt(cartPix) : '-'} |
+ ${cartCred > 0 ? fmt(cartCred).replace('R$ ','') : '-'} |
+ ${cartDeb > 0 ? fmt(cartDeb).replace('R$ ','') : '-'} |
+ ${cartAli > 0 ? fmt(cartAli).replace('R$ ','') : '-'} |
+ ${cartPix > 0 ? fmt(cartPix).replace('R$ ','') : '-'} |
`;
const sysTotal = data.sys_total || 0;
@@ -1617,12 +1617,12 @@ function buildPrintHTML(data) {
.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: 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 { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 4px; font-weight: bold !important; }
+ .cart-table th { font-weight: bold !important; border-bottom: 2px solid #000; padding: 2px 3px; font-size: 12px; width: 25%; }
+ .cart-table td { padding: 2px 3px; text-align: right; font-weight: bold !important; font-size: 12px; }
.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: 18px; margin-top: 4px; }
+ .subtotal { font-size: 12px; 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; }
@@ -1668,7 +1668,7 @@ ${cancLines.map(l => `${l.label}${fmt(l.valo
- | CRÉDITO | DÉBITO | ALIMENT. | PIX |
+ CRÉD | DÉBIT | ALIM | PIX |