footer added

This commit is contained in:
sigitas 2015-04-14 10:04:58 +03:00
parent 8921eb0e9b
commit 3da43758c4
3 changed files with 18 additions and 77 deletions

File diff suppressed because one or more lines are too long

View File

@ -99,9 +99,19 @@ var dd = {
] ]
}, },
], ],
footer:function(){
return invoice.invoice_footer?invoice.invoice_footer:""; footer: function(){
f = [{ text:invoice.invoice_footer?invoice.invoice_footer:"", margin: [72, 0]}]
if (!invoice.is_pro && logoImages.imageLogo1) {
f.push({
image: logoImages.imageLogo1,
width: 150,
margin: [72,0]
});
}
return f;
}, },
defaultStyle: { defaultStyle: {
font: 'sans' font: 'sans'
}, },
@ -126,6 +136,6 @@ var dd = {
lineTotal: { lineTotal: {
alignment: 'right' alignment: 'right'
} }
},
} pageMargins: [72, 40, 40, 80]
}; };

File diff suppressed because one or more lines are too long