From 8ce739d71316d2fd58c2030a45c7a6d2005e11a0 Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Fri, 27 Feb 2026 10:44:00 -0600 Subject: [PATCH] avoid breaks --- server.js | 4 ++-- templates/invoice-template.html | 4 ++++ templates/quote-template.html | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) 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; + }