notes and terms added

This commit is contained in:
sigitas 2015-04-13 23:45:09 +03:00
parent 28c057ccd9
commit 3d96f51790
3 changed files with 37 additions and 1 deletions

View File

@ -33347,6 +33347,20 @@ function GetPdfMake(invoice, javascript, callback) {
return; return;
} }
function notesAndTerms(invoice)
{
var text = [];
if (invoice.public_notes) {
text.push(invoice.public_notes);
}
if (invoice.terms) {
text.push({text:invoiceLabels.terms, style:'bold'});
text.push(invoice.terms);
}
return text;
}
function invoiceLines(invoice) { function invoiceLines(invoice) {
var grid = var grid =

View File

@ -6,6 +6,20 @@ function GetPdfMake(invoice, javascript, callback) {
return; return;
} }
function notesAndTerms(invoice)
{
var text = [];
if (invoice.public_notes) {
text.push(invoice.public_notes);
}
if (invoice.terms) {
text.push({text:invoiceLabels.terms, style:'bold'});
text.push(invoice.terms);
}
return text;
}
function invoiceLines(invoice) { function invoiceLines(invoice) {
var grid = var grid =

View File

@ -89,7 +89,15 @@ var dd = {
return '#D8D8D8'; return '#D8D8D8';
} }
}, },
} },
{
columns: [
notesAndTerms(invoice),
{
text: ""
}
]
},
], ],
defaultStyle: { defaultStyle: {
font: 'sans' font: 'sans'