Add Paid to the top of a pdf invoice if paid

This commit is contained in:
johnnyq
2025-03-01 12:03:48 -05:00
parent d197995226
commit 32e6345cbc
2 changed files with 30 additions and 0 deletions

View File

@@ -377,6 +377,13 @@ if ($balance > 0) {
style: 'invoiceNumber',
width: '*'
},
<?php if ($invoice_status == "Paid") { ?>
{
text: 'PAID',
style: 'invoicePaid',
width: '*'
},
<?php } ?>
],
],
},
@@ -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,