From fbf535444b26142f0885c73528bf92ed611add5d Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 2 Nov 2023 16:31:25 -0400 Subject: [PATCH] Updated Quote and Recurring to match invoice UI updates --- guest_view_quote.php | 57 ++++++++++++++++++++++++++++++------------- quote.php | 55 +++++++++++++++++++++++++++++------------ recurring_invoice.php | 24 +++++++----------- 3 files changed, 88 insertions(+), 48 deletions(-) diff --git a/guest_view_quote.php b/guest_view_quote.php index c8df34da..d1502026 100644 --- a/guest_view_quote.php +++ b/guest_view_quote.php @@ -154,7 +154,7 @@ if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Vie Date - + Expire @@ -233,21 +233,16 @@ if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Vie
- 0) { - ?> - - - - - + 0) { ?> + + + + + 0) { ?> @@ -378,11 +373,11 @@ if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Vie {}, { text: 'Expire', - style: 'invoiceDateTitle' + style: 'invoiceDueDateTitle' }, { text: , - style: 'invoiceDateValue' + style: 'invoiceDueDateValue' }, ], ] @@ -501,7 +496,7 @@ if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Vie ], [ { - rowSpan: 3, + rowSpan: '*', text: , style: 'notesText' }, @@ -514,6 +509,20 @@ if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Vie style: 'itemsFooterSubValue' } ], + 0) { ?> + [ + {}, + { + text: 'Discount', + style: 'itemsFooterSubTitle' + }, + { + text: , + style: 'itemsFooterSubValue' + } + ], + + 0) { ?> [ {}, { @@ -525,15 +534,16 @@ if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Vie style: 'itemsFooterSubValue' } ], + [ {}, { text: 'Total', - style: 'itemsFooterSubTitle' + style: 'itemsFooterTotalTitle' }, { text: , - style: 'itemsFooterSubValue' + style: 'itemsFooterTotalValue' } ], ] @@ -600,6 +610,19 @@ if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Vie alignment: 'right', margin: [0,5,0,5] }, + // Invoice Due Dates + invoiceDueDateTitle: { + fontSize: 10, + bold: true, + alignment: 'left', + margin: [0,5,0,5] + }, + invoiceDueDateValue: { + fontSize: 10, + bold: true, + alignment: 'right', + margin: [0,5,0,5] + }, // Items Header itemsHeader: { fontSize: 10, diff --git a/quote.php b/quote.php index c644944d..ade850d3 100644 --- a/quote.php +++ b/quote.php @@ -422,21 +422,16 @@ if (isset($_GET['quote_id'])) {
Discount
Subtotal
Discount
Tax
- 0) { - ?> - - - - - + 0) { ?> + + + + + 0) { ?> @@ -642,11 +637,11 @@ require_once "footer.php"; {}, { text: 'Expire', - style: 'invoiceDateTitle' + style: 'invoiceDueDateTitle' }, { text: , - style: 'invoiceDateValue' + style: 'invoiceDueDateValue' }, ], ] @@ -765,7 +760,7 @@ require_once "footer.php"; ], [ { - rowSpan: 3, + rowSpan: '*', text: , style: 'notesText' }, @@ -778,6 +773,20 @@ require_once "footer.php"; style: 'itemsFooterSubValue' } ], + 0) { ?> + [ + {}, + { + text: 'Discount', + style: 'itemsFooterSubTitle' + }, + { + text: , + style: 'itemsFooterSubValue' + } + ], + + 0) { ?> [ {}, { @@ -789,15 +798,16 @@ require_once "footer.php"; style: 'itemsFooterSubValue' } ], + [ {}, { text: 'Total', - style: 'itemsFooterSubTitle' + style: 'itemsFooterTotalTitle' }, { text: , - style: 'itemsFooterSubValue' + style: 'itemsFooterTotalValue' } ], ] @@ -864,6 +874,19 @@ require_once "footer.php"; alignment: 'right', margin: [0,5,0,5] }, + // Invoice Due Dates + invoiceDueDateTitle: { + fontSize: 10, + bold: true, + alignment: 'left', + margin: [0,5,0,5] + }, + invoiceDueDateValue: { + fontSize: 10, + bold: true, + alignment: 'right', + margin: [0,5,0,5] + }, // Items Header itemsHeader: { fontSize: 10, diff --git a/recurring_invoice.php b/recurring_invoice.php index 8bba5ac6..00329680 100644 --- a/recurring_invoice.php +++ b/recurring_invoice.php @@ -356,31 +356,25 @@ if (isset($_GET['recurring_id'])) {
Discount
Subtotal
Discount-
Tax
- 0) { - ?> - - - - - - + 0) { ?> + + + + + 0) { ?> - - - + + +
Discount
Subtotal
Discount
Tax
Total
Total