mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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
|
// only show the header on the first page
|
||||||
if (invoice.is_pro && key === 'footer') {
|
// 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 function(page, pages) {
|
||||||
return page === pages ? val : '';
|
return page === pages ? val : '';
|
||||||
}
|
}
|
||||||
|
@ -54,8 +54,13 @@ function GetPdfMake(invoice, javascript, callback) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// only show the footer on the last page
|
// only show the header on the first page
|
||||||
if (invoice.is_pro && key === 'footer') {
|
// 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 function(page, pages) {
|
||||||
return page === pages ? val : '';
|
return page === pages ? val : '';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user