mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user