Reworked the PDF Invoice / Quote footer so it can fit more than 2 lines of text, also fixed quote footer not displaying under guest view quote

This commit is contained in:
johnnyq 2022-01-19 14:27:15 -05:00
parent 4a8f399dc4
commit 80355417fa
4 changed files with 30 additions and 42 deletions

View File

@ -297,14 +297,6 @@ var docDefinition = {
title: '<?php echo "$company_name - Invoice"; ?>',
author: '<?php echo $company_name; ?>'
},
footer: {
columns: [
{
text: <?php echo json_encode($config_invoice_footer); ?>,
style: 'documentFooterCenter'
},
]
},
//watermark: {text: '<?php echo $invoice_status; ?>', color: 'lightgrey', opacity: 0.3, bold: true, italics: false},
@ -576,13 +568,18 @@ var docDefinition = {
]
}, // table
layout: 'lightHorizontalLines'
}
},
// TERMS / FOOTER
{
text: <?php echo json_encode("$config_invoice_footer"); ?>,
style: 'documentFooterCenter'
}
], //End Content,
styles: {
// Document Footer
documentFooterCenter: {
fontSize: 9,
margin: [10,10,10,10],
margin: [10,50,10,10],
alignment:'center'
},
// Invoice Title

View File

@ -58,7 +58,7 @@ if(isset($_GET['quote_id'], $_GET['url_key'])){
if(!empty($company_logo)){
$company_logo_base64 = base64_encode(file_get_contents("uploads/settings/$company_id/$company_logo"));
}
$quote_footer = $row['quote_footer'];
$config_quote_footer = $row['config_quote_footer'];
$ip = get_ip();
$os = get_os();
@ -252,14 +252,6 @@ var docDefinition = {
title: '<?php echo "$company_name - Quote"; ?>',
author: '<?php echo $company_name; ?>'
},
footer: {
columns: [
{
text: <?php echo json_encode($config_quote_footer); ?>,
style: 'documentFooterCenter'
},
]
},
//watermark: {text: '<?php echo $quote_status; ?>', color: 'lightgrey', opacity: 0.3, bold: true, italics: false},
@ -497,13 +489,18 @@ var docDefinition = {
]
}, // table
layout: 'lightHorizontalLines'
}
},
// TERMS / FOOTER
{
text: <?php echo json_encode("$config_quote_footer"); ?>,
style: 'documentFooterCenter'
}
], //End Content,
styles: {
// Document Footer
documentFooterCenter: {
fontSize: 9,
margin: [10,10,10,10],
margin: [10,50,10,10],
alignment:'center'
},
// Invoice Title

View File

@ -527,14 +527,6 @@ var docDefinition = {
title: '<?php echo "$company_name - Invoice"; ?>',
author: '<?php echo $company_name; ?>'
},
footer: {
columns: [
{
text: <?php echo json_encode($config_invoice_footer); ?>,
style: 'documentFooterCenter'
},
]
},
//watermark: {text: '<?php echo $invoice_status; ?>', color: 'lightgrey', opacity: 0.3, bold: true, italics: false},
@ -806,14 +798,19 @@ var docDefinition = {
]
}, // table
layout: 'lightHorizontalLines'
}
},
// TERMS / FOOTER
{
text: <?php echo json_encode("$config_invoice_footer"); ?>,
style: 'documentFooterCenter'
}
], //End Content,
styles: {
// Document Footer
documentFooterCenter: {
fontSize: 9,
margin: [10,10,10,10],
alignment:'center'
margin: [10,50,10,10],
alignment:'center',
},
// Invoice Title
invoiceTitle: {

View File

@ -434,14 +434,6 @@ var docDefinition = {
title: '<?php echo "$company_name - Quote"; ?>',
author: '<?php echo $company_name; ?>'
},
footer: {
columns: [
{
text: <?php echo json_encode($config_quote_footer); ?>,
style: 'documentFooterCenter'
},
]
},
//watermark: {text: '<?php echo $quote_status; ?>', color: 'lightgrey', opacity: 0.3, bold: true, italics: false},
@ -679,13 +671,18 @@ var docDefinition = {
]
}, // table
layout: 'lightHorizontalLines'
}
},
// TERMS / FOOTER
{
text: <?php echo json_encode("$config_quote_footer"); ?>,
style: 'documentFooterCenter'
}
], //End Content,
styles: {
// Document Footer
documentFooterCenter: {
fontSize: 9,
margin: [10,10,10,10],
margin: [10,50,10,10],
alignment:'center'
},
// Invoice Title