From d2d1aed39303f00a68a17eb245d737ced25116dc Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 5 Sep 2025 18:48:35 -0400 Subject: [PATCH] Fix long Invoice/Quote notes overflowing into the invoice/quote footer by removing a rowspan class, adjusted the page margins from 15 to 10 and adjusted the invoice/quote notes to use font size 9 instead of 10 --- guest/guest_post.php | 8 ++++---- user/post/invoice.php | 4 ++-- user/post/quote.php | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/guest/guest_post.php b/guest/guest_post.php index 07870e8e..89defa40 100644 --- a/guest/guest_post.php +++ b/guest/guest_post.php @@ -300,7 +300,7 @@ if (isset($_GET['export_quote_pdf'])) { // Start TCPDF $pdf = new TCPDF('P', 'mm', 'A4', true, 'UTF-8', false); - $pdf->SetMargins(15, 15, 15); + $pdf->SetMargins(10, 10, 10); $pdf->setPrintHeader(false); $pdf->setPrintFooter(false); $pdf->AddPage(); @@ -397,7 +397,7 @@ if (isset($_GET['export_quote_pdf'])) { // Totals $html .= ' - +
' . nl2br($quote_note) . '' . nl2br($quote_note) . ' '; @@ -526,7 +526,7 @@ if (isset($_GET['export_invoice_pdf'])) { // Start TCPDF $pdf = new TCPDF('P', 'mm', 'A4', true, 'UTF-8', false); - $pdf->SetMargins(15, 15, 15); + $pdf->SetMargins(10, 10, 10); $pdf->setPrintHeader(false); $pdf->setPrintFooter(false); $pdf->AddPage(); @@ -620,7 +620,7 @@ if (isset($_GET['export_invoice_pdf'])) { // Totals $html .= '
Subtotal:' . numfmt_format_currency($currency_format, $sub_total, $quote_currency_code) . '
- +
' . nl2br($invoice_note) . '' . nl2br($invoice_note) . ' '; diff --git a/user/post/invoice.php b/user/post/invoice.php index 738e6edc..504b7f25 100644 --- a/user/post/invoice.php +++ b/user/post/invoice.php @@ -2232,7 +2232,7 @@ if (isset($_GET['export_invoice_pdf'])) { // Start TCPDF $pdf = new TCPDF('P', 'mm', 'A4', true, 'UTF-8', false); - $pdf->SetMargins(15, 15, 15); + $pdf->SetMargins(10, 10, 10); $pdf->setPrintHeader(false); $pdf->setPrintFooter(false); $pdf->AddPage(); @@ -2326,7 +2326,7 @@ if (isset($_GET['export_invoice_pdf'])) { // Totals $html .= '
Subtotal:' . numfmt_format_currency($currency_format, $sub_total, $invoice_currency_code) . '
- +
' . nl2br($invoice_note) . '' . nl2br($invoice_note) . ' '; diff --git a/user/post/quote.php b/user/post/quote.php index 608376ec..fcfd70fe 100644 --- a/user/post/quote.php +++ b/user/post/quote.php @@ -669,7 +669,7 @@ if (isset($_GET['export_quote_pdf'])) { // Start TCPDF $pdf = new TCPDF('P', 'mm', 'A4', true, 'UTF-8', false); - $pdf->SetMargins(15, 15, 15); + $pdf->SetMargins(10, 10, 10); $pdf->setPrintHeader(false); $pdf->setPrintFooter(false); $pdf->AddPage(); @@ -766,7 +766,7 @@ if (isset($_GET['export_quote_pdf'])) { // Totals $html .= '
Subtotal:' . numfmt_format_currency($currency_format, $sub_total, $invoice_currency_code) . '
- +
' . nl2br($quote_note) . '' . nl2br($quote_note) . ' ';
Subtotal:' . numfmt_format_currency($currency_format, $sub_total, $quote_currency_code) . '