modified: templates/checkout.html

modified:   templates/macros/modals.html
This commit is contained in:
2026-04-16 02:04:14 -04:00
parent 4b3ef3eb8b
commit 83f9f606de
2 changed files with 31 additions and 7 deletions

View File

@@ -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);