From 32e6345cbc48a014e5f55bac3e131046cd396b2d Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 1 Mar 2025 12:03:48 -0500 Subject: [PATCH] Add Paid to the top of a pdf invoice if paid --- guest/guest_view_invoice.php | 15 +++++++++++++++ invoice.php | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/guest/guest_view_invoice.php b/guest/guest_view_invoice.php index ca1c4765..8352d4f8 100644 --- a/guest/guest_view_invoice.php +++ b/guest/guest_view_invoice.php @@ -377,6 +377,13 @@ if ($balance > 0) { style: 'invoiceNumber', width: '*' }, + + { + text: 'PAID', + style: 'invoicePaid', + width: '*' + }, + ], ], }, @@ -666,6 +673,14 @@ if ($balance > 0) { fontSize: 14, alignment: 'right' }, + // Invoice Paid + invoicePaid: { + fontSize: 13, + bold: true, + margin: [0,5,0,0], + alignment: 'right', + color: 'green' + }, // Billing Headers invoiceBillingTitle: { fontSize: 14, diff --git a/invoice.php b/invoice.php index 273e9e42..695c7fed 100644 --- a/invoice.php +++ b/invoice.php @@ -742,6 +742,13 @@ require_once "includes/footer.php"; style: 'invoiceNumber', width: '*' }, + + { + text: 'PAID', + style: 'invoicePaid', + width: '*' + }, + ], ], }, @@ -1031,6 +1038,14 @@ require_once "includes/footer.php"; fontSize: 14, alignment: 'right' }, + // Invoice Paid + invoicePaid: { + fontSize: 13, + bold: true, + margin: [0,5,0,0], + alignment: 'right', + color: 'green' + }, // Billing Headers invoiceBillingTitle: { fontSize: 14,