mirror of
https://github.com/itflow-org/itflow
synced 2026-03-06 13:54:51 +00:00
Add Paid to the top of a pdf invoice if paid
This commit is contained in:
@@ -377,6 +377,13 @@ if ($balance > 0) {
|
|||||||
style: 'invoiceNumber',
|
style: 'invoiceNumber',
|
||||||
width: '*'
|
width: '*'
|
||||||
},
|
},
|
||||||
|
<?php if ($invoice_status == "Paid") { ?>
|
||||||
|
{
|
||||||
|
text: 'PAID',
|
||||||
|
style: 'invoicePaid',
|
||||||
|
width: '*'
|
||||||
|
},
|
||||||
|
<?php } ?>
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -666,6 +673,14 @@ if ($balance > 0) {
|
|||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
alignment: 'right'
|
alignment: 'right'
|
||||||
},
|
},
|
||||||
|
// Invoice Paid
|
||||||
|
invoicePaid: {
|
||||||
|
fontSize: 13,
|
||||||
|
bold: true,
|
||||||
|
margin: [0,5,0,0],
|
||||||
|
alignment: 'right',
|
||||||
|
color: 'green'
|
||||||
|
},
|
||||||
// Billing Headers
|
// Billing Headers
|
||||||
invoiceBillingTitle: {
|
invoiceBillingTitle: {
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
|
|||||||
15
invoice.php
15
invoice.php
@@ -742,6 +742,13 @@ require_once "includes/footer.php";
|
|||||||
style: 'invoiceNumber',
|
style: 'invoiceNumber',
|
||||||
width: '*'
|
width: '*'
|
||||||
},
|
},
|
||||||
|
<?php if ($invoice_status == "Paid") { ?>
|
||||||
|
{
|
||||||
|
text: 'PAID',
|
||||||
|
style: 'invoicePaid',
|
||||||
|
width: '*'
|
||||||
|
},
|
||||||
|
<?php } ?>
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -1031,6 +1038,14 @@ require_once "includes/footer.php";
|
|||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
alignment: 'right'
|
alignment: 'right'
|
||||||
},
|
},
|
||||||
|
// Invoice Paid
|
||||||
|
invoicePaid: {
|
||||||
|
fontSize: 13,
|
||||||
|
bold: true,
|
||||||
|
margin: [0,5,0,0],
|
||||||
|
alignment: 'right',
|
||||||
|
color: 'green'
|
||||||
|
},
|
||||||
// Billing Headers
|
// Billing Headers
|
||||||
invoiceBillingTitle: {
|
invoiceBillingTitle: {
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
|
|||||||
Reference in New Issue
Block a user