mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixed new header/footer settings
This commit is contained in:
parent
0ed01481c4
commit
da83776aa9
@ -30967,11 +30967,11 @@ function GetPdfMake(invoice, javascript, callback) {
|
||||
if (invoice.is_pro) {
|
||||
if (key === 'header') {
|
||||
return function(page, pages) {
|
||||
return page === 1 || account.all_pages_header ? val : '';
|
||||
return page === 1 || invoice.account.all_pages_header == '1' ? val : '';
|
||||
}
|
||||
} else if (key === 'footer') {
|
||||
return function(page, pages) {
|
||||
return page === pages || account.all_pages_footer ? val : '';
|
||||
return page === pages || invoice.account.all_pages_footer == '1' ? val : '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -58,11 +58,11 @@ function GetPdfMake(invoice, javascript, callback) {
|
||||
if (invoice.is_pro) {
|
||||
if (key === 'header') {
|
||||
return function(page, pages) {
|
||||
return page === 1 || account.all_pages_header ? val : '';
|
||||
return page === 1 || invoice.account.all_pages_header == '1' ? val : '';
|
||||
}
|
||||
} else if (key === 'footer') {
|
||||
return function(page, pages) {
|
||||
return page === pages || account.all_pages_footer ? val : '';
|
||||
return page === pages || invoice.account.all_pages_footer == '1' ? val : '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user