diff --git a/server.js b/server.js index a118003..5eb6af5 100644 --- a/server.js +++ b/server.js @@ -1374,7 +1374,7 @@ app.get('/api/invoices/:id/pdf', async (req, res) => { if (amountPaid > 0) { itemsHTML += ` - Less: Payment received: + Downpayment: -$${amountPaid.toFixed(2)} @@ -1617,7 +1617,7 @@ app.get('/api/invoices/:id/html', async (req, res) => { if (amountPaid > 0) { itemsHTML += ` - Less: Payment received: + Downpayment: -$${amountPaid.toFixed(2)} diff --git a/templates/invoice-template.html b/templates/invoice-template.html index 474d9f5..74aff1b 100644 --- a/templates/invoice-template.html +++ b/templates/invoice-template.html @@ -206,6 +206,10 @@ position: absolute; bottom: 0; } + tr { + page-break-inside: avoid; + break-inside: avoid; + } diff --git a/templates/quote-template.html b/templates/quote-template.html index 312ccaa..9932192 100644 --- a/templates/quote-template.html +++ b/templates/quote-template.html @@ -202,6 +202,10 @@ position: absolute; bottom: 0; } + tr { + page-break-inside: avoid; + break-inside: avoid; + }