diff --git a/templates/checkout.html b/templates/checkout.html index befefbe..bd4e0bb 100644 --- a/templates/checkout.html +++ b/templates/checkout.html @@ -1008,7 +1008,16 @@ const finalPaid = paidAmount > 0 ? paidAmount : total; + // Calculate Neto & IVA (Assuming 19% IVA) + const neto = Math.round(total / 1.19); + const iva = total - neto; + document.getElementById('receipt-ticket-id').innerText = saleId || "N/A"; + + // Add the Neto and IVA fields + document.getElementById('receipt-neto-print').innerText = clp.format(neto); + document.getElementById('receipt-iva-print').innerText = clp.format(iva); + document.getElementById('receipt-total-print').innerText = clp.format(total); document.getElementById('receipt-paid-print').innerText = clp.format(finalPaid); document.getElementById('receipt-change-print').innerText = clp.format(finalPaid - total); diff --git a/templates/macros/modals.html b/templates/macros/modals.html index e370eab..7095eff 100644 --- a/templates/macros/modals.html +++ b/templates/macros/modals.html @@ -62,7 +62,8 @@ .receipt-table { width: 100%; border-collapse: collapse; font-family: 'Courier New', Courier, monospace; font-size: 11px; margin-top: 10px;} .receipt-header { text-align: center; margin-bottom: 5px; } .sii-box { border: 2px solid #000; padding: 5px; text-align: center; font-weight: bold; } - .receipt-total-row { border-top: 1px dashed #000; margin-top: 5px; padding-top: 5px; font-weight: bold; font-size: 14px; display: flex; justify-content: space-between; } + .receipt-subtotal-row { display: flex; justify-content: space-between; font-size: 11px; } + .receipt-total-row { margin-top: 2px; padding-top: 2px; font-weight: bold; font-size: 14px; display: flex; justify-content: space-between; } .ted-block { text-align: center; margin-top: 15px; margin-bottom: 10px; } @@ -90,7 +91,7 @@