mirror of
https://github.com/itflow-org/itflow
synced 2026-03-26 15:25:38 +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:
@@ -297,14 +297,6 @@ var docDefinition = {
|
|||||||
title: '<?php echo "$company_name - Invoice"; ?>',
|
title: '<?php echo "$company_name - Invoice"; ?>',
|
||||||
author: '<?php echo $company_name; ?>'
|
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},
|
//watermark: {text: '<?php echo $invoice_status; ?>', color: 'lightgrey', opacity: 0.3, bold: true, italics: false},
|
||||||
|
|
||||||
@@ -576,13 +568,18 @@ var docDefinition = {
|
|||||||
]
|
]
|
||||||
}, // table
|
}, // table
|
||||||
layout: 'lightHorizontalLines'
|
layout: 'lightHorizontalLines'
|
||||||
}
|
},
|
||||||
|
// TERMS / FOOTER
|
||||||
|
{
|
||||||
|
text: <?php echo json_encode("$config_invoice_footer"); ?>,
|
||||||
|
style: 'documentFooterCenter'
|
||||||
|
}
|
||||||
], //End Content,
|
], //End Content,
|
||||||
styles: {
|
styles: {
|
||||||
// Document Footer
|
// Document Footer
|
||||||
documentFooterCenter: {
|
documentFooterCenter: {
|
||||||
fontSize: 9,
|
fontSize: 9,
|
||||||
margin: [10,10,10,10],
|
margin: [10,50,10,10],
|
||||||
alignment:'center'
|
alignment:'center'
|
||||||
},
|
},
|
||||||
// Invoice Title
|
// Invoice Title
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ if(isset($_GET['quote_id'], $_GET['url_key'])){
|
|||||||
if(!empty($company_logo)){
|
if(!empty($company_logo)){
|
||||||
$company_logo_base64 = base64_encode(file_get_contents("uploads/settings/$company_id/$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();
|
$ip = get_ip();
|
||||||
$os = get_os();
|
$os = get_os();
|
||||||
@@ -252,14 +252,6 @@ var docDefinition = {
|
|||||||
title: '<?php echo "$company_name - Quote"; ?>',
|
title: '<?php echo "$company_name - Quote"; ?>',
|
||||||
author: '<?php echo $company_name; ?>'
|
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},
|
//watermark: {text: '<?php echo $quote_status; ?>', color: 'lightgrey', opacity: 0.3, bold: true, italics: false},
|
||||||
|
|
||||||
@@ -497,13 +489,18 @@ var docDefinition = {
|
|||||||
]
|
]
|
||||||
}, // table
|
}, // table
|
||||||
layout: 'lightHorizontalLines'
|
layout: 'lightHorizontalLines'
|
||||||
}
|
},
|
||||||
|
// TERMS / FOOTER
|
||||||
|
{
|
||||||
|
text: <?php echo json_encode("$config_quote_footer"); ?>,
|
||||||
|
style: 'documentFooterCenter'
|
||||||
|
}
|
||||||
], //End Content,
|
], //End Content,
|
||||||
styles: {
|
styles: {
|
||||||
// Document Footer
|
// Document Footer
|
||||||
documentFooterCenter: {
|
documentFooterCenter: {
|
||||||
fontSize: 9,
|
fontSize: 9,
|
||||||
margin: [10,10,10,10],
|
margin: [10,50,10,10],
|
||||||
alignment:'center'
|
alignment:'center'
|
||||||
},
|
},
|
||||||
// Invoice Title
|
// Invoice Title
|
||||||
|
|||||||
19
invoice.php
19
invoice.php
@@ -527,14 +527,6 @@ var docDefinition = {
|
|||||||
title: '<?php echo "$company_name - Invoice"; ?>',
|
title: '<?php echo "$company_name - Invoice"; ?>',
|
||||||
author: '<?php echo $company_name; ?>'
|
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},
|
//watermark: {text: '<?php echo $invoice_status; ?>', color: 'lightgrey', opacity: 0.3, bold: true, italics: false},
|
||||||
|
|
||||||
@@ -806,14 +798,19 @@ var docDefinition = {
|
|||||||
]
|
]
|
||||||
}, // table
|
}, // table
|
||||||
layout: 'lightHorizontalLines'
|
layout: 'lightHorizontalLines'
|
||||||
}
|
},
|
||||||
|
// TERMS / FOOTER
|
||||||
|
{
|
||||||
|
text: <?php echo json_encode("$config_invoice_footer"); ?>,
|
||||||
|
style: 'documentFooterCenter'
|
||||||
|
}
|
||||||
], //End Content,
|
], //End Content,
|
||||||
styles: {
|
styles: {
|
||||||
// Document Footer
|
// Document Footer
|
||||||
documentFooterCenter: {
|
documentFooterCenter: {
|
||||||
fontSize: 9,
|
fontSize: 9,
|
||||||
margin: [10,10,10,10],
|
margin: [10,50,10,10],
|
||||||
alignment:'center'
|
alignment:'center',
|
||||||
},
|
},
|
||||||
// Invoice Title
|
// Invoice Title
|
||||||
invoiceTitle: {
|
invoiceTitle: {
|
||||||
|
|||||||
17
quote.php
17
quote.php
@@ -434,14 +434,6 @@ var docDefinition = {
|
|||||||
title: '<?php echo "$company_name - Quote"; ?>',
|
title: '<?php echo "$company_name - Quote"; ?>',
|
||||||
author: '<?php echo $company_name; ?>'
|
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},
|
//watermark: {text: '<?php echo $quote_status; ?>', color: 'lightgrey', opacity: 0.3, bold: true, italics: false},
|
||||||
|
|
||||||
@@ -679,13 +671,18 @@ var docDefinition = {
|
|||||||
]
|
]
|
||||||
}, // table
|
}, // table
|
||||||
layout: 'lightHorizontalLines'
|
layout: 'lightHorizontalLines'
|
||||||
}
|
},
|
||||||
|
// TERMS / FOOTER
|
||||||
|
{
|
||||||
|
text: <?php echo json_encode("$config_quote_footer"); ?>,
|
||||||
|
style: 'documentFooterCenter'
|
||||||
|
}
|
||||||
], //End Content,
|
], //End Content,
|
||||||
styles: {
|
styles: {
|
||||||
// Document Footer
|
// Document Footer
|
||||||
documentFooterCenter: {
|
documentFooterCenter: {
|
||||||
fontSize: 9,
|
fontSize: 9,
|
||||||
margin: [10,10,10,10],
|
margin: [10,50,10,10],
|
||||||
alignment:'center'
|
alignment:'center'
|
||||||
},
|
},
|
||||||
// Invoice Title
|
// Invoice Title
|
||||||
|
|||||||
Reference in New Issue
Block a user