From 5cae50578d8b1d1a59893fdf0428d13886710d14 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 6 Apr 2021 21:25:25 -0400 Subject: [PATCH] Cloned Invoice Template to all places with Invoices and Quotes --- guest_view_quote.php | 732 ++++++++++++++++++++++--------------------- quote.php | 715 ++++++++++++++++++++++-------------------- 2 files changed, 762 insertions(+), 685 deletions(-) diff --git a/guest_view_quote.php b/guest_view_quote.php index e532b16c..d615e796 100644 --- a/guest_view_quote.php +++ b/guest_view_quote.php @@ -247,363 +247,397 @@ if(isset($_GET['quote_id'], $_GET['url_key'])){ - + + + body: [ + // Total + [ + { + text: 'Notes', + style:'notesTitle' + }, + {}, + {} + ], + [ + { + rowSpan: 3, + text: , + style:'notesText' + }, + { + text:'Subtotal', + style:'itemsFooterSubTitle' + }, + { + text:'$', + style:'itemsFooterSubValue' + } + ], + [ + {}, + { + text:'Tax', + style:'itemsFooterSubTitle' + }, + { + text: '$', + style:'itemsFooterSubValue' + } + ], + [ + {}, + { + text:'Total', + style:'itemsFooterSubTitle' + }, + { + text: '$', + style:'itemsFooterSubValue' + } + ], + ] + }, // table + layout: 'lightHorizontalLines' + } + ], //End Content, + styles: { + // Document Footer + documentFooterCenter: { + fontSize: 9, + margin: [10,10,10,10], + alignment:'center' + }, + // Invoice Title + invoiceTitle: { + fontSize: 18, + bold: true, + alignment:'right', + margin:[0,0,0,3] + }, + // Invoice Number + invoiceNumber: { + fontSize: 14, + alignment:'right' + }, + // Billing Headers + invoiceBillingTitle: { + fontSize: 14, + bold: true, + alignment:'left', + margin:[0,20,0,5] + }, + invoiceBillingTitleClient: { + fontSize: 14, + bold: true, + alignment:'right', + margin:[0,20,0,5] + }, + // Billing Details + invoiceBillingAddress: { + fontSize: 10, + lineHeight: 1.2 + }, + invoiceBillingAddressClient: { + fontSize: 10, + lineHeight: 1.2, + alignment:'right', + margin:[0,0,0,30] + }, + // Invoice Dates + invoiceDateTitle: { + fontSize: 10, + alignment:'left', + margin:[0,5,0,5] + }, + invoiceDateValue: { + fontSize: 10, + alignment:'right', + margin:[0,5,0,5] + }, + // Items Header + itemsHeader: { + fontSize: 10, + margin: [0,5,0,5], + bold: true, + alignment:'right' + }, + // Item Title + itemTitle: { + fontSize: 10, + bold: true, + margin: [0,5,0,3] + }, + itemDescription: { + italics: true, + fontSize: 9, + lineHeight: 1.1, + margin: [0,3,0,5] + }, + itemQty: { + fontSize: 10, + margin: [0,5,0,5], + alignment: 'center', + }, + itemNumber: { + fontSize: 10, + margin: [0,5,0,5], + alignment: 'right', + }, + itemTotal: { + fontSize: 10, + margin: [0,5,0,5], + bold: true, + alignment: 'right', + }, + // Items Footer (Subtotal, Total, Tax, etc) + itemsFooterSubTitle: { + fontSize: 10, + margin: [0,5,0,5], + alignment:'right', + }, + itemsFooterSubValue: { + fontSize: 10, + margin: [0,5,0,5], + bold: false, + alignment:'right', + }, + itemsFooterTotalTitle: { + fontSize: 10, + margin: [0,5,0,5], + bold: true, + alignment:'right', + }, + itemsFooterTotalValue: { + fontSize: 10, + margin: [0,5,0,5], + bold: true, + alignment:'right', + }, + notesTitle: { + fontSize: 10, + bold: true, + margin: [0,5,0,5], + }, + notesText: { + fontSize: 9, + margin: [0,5,50,5] + }, + left: { + alignment:'left', + }, + center: { + alignment:'center', + }, + }, + defaultStyle: { + columnGap: 20, + } +} + -