mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 00:11:35 +02:00
Only show header on the first page of the PDF
This commit is contained in:
parent
08fd14a4c1
commit
36859c8262
@ -30926,8 +30926,13 @@ function GetPdfMake(invoice, javascript, callback) {
|
||||
}
|
||||
}
|
||||
|
||||
// only show the footer on the last page
|
||||
if (invoice.is_pro && key === 'footer') {
|
||||
// only show the header on the first page
|
||||
// and the footer on the last page
|
||||
if (key === 'header') {
|
||||
return function(page, pages) {
|
||||
return page === 1 ? val : '';
|
||||
}
|
||||
} else if (invoice.is_pro && key === 'footer') {
|
||||
return function(page, pages) {
|
||||
return page === pages ? val : '';
|
||||
}
|
||||
|
@ -54,8 +54,13 @@ function GetPdfMake(invoice, javascript, callback) {
|
||||
}
|
||||
}
|
||||
|
||||
// only show the footer on the last page
|
||||
if (invoice.is_pro && key === 'footer') {
|
||||
// only show the header on the first page
|
||||
// and the footer on the last page
|
||||
if (key === 'header') {
|
||||
return function(page, pages) {
|
||||
return page === 1 ? val : '';
|
||||
}
|
||||
} else if (invoice.is_pro && key === 'footer') {
|
||||
return function(page, pages) {
|
||||
return page === pages ? val : '';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user