Footer Setting to print at the last page
Hi,
please advice on how to display/print the footer just on the last page.
erpnext 15.31.5 frappe 15.36.1 payments 0.0.1 print_designer 1.2.0
- I was unable to save the changes after follow your advice/replied 04/09/2024, there is no respond after i click "SAVE" :-
also, on footer you can choose to show it on only last page by selecting from properties panel ( look at bottom right). but that will leave empty space on all pages. choose method which suits your requirements Thank you.
Are you ablt to resolve this? At first I understand that the multiple footer is used in case
- For multiple page print out, the last footer will be printed only on last page. And the first footer will be printed on all other pages.
- For single page print out, the last footer should be used as first page footer too.
But so far I not seem to be so.
I experienced the same thing on develop branch for both frappe and print_designer Can not configure footer for printing only on first, or last page.
cc @maharshivpatel
Get this error on console at footer saving.
VM3787:59954 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'childrens') at <anonymous>:59954:53 at Proxy.map (<anonymous>) at Proxy.saveHeaderFooter (<anonymous>:59951:31) at $setup.MainStore.mode.createElementBlock.onClick._cache.<computed>._cache.<computed> (<anonymous>:60224:28) at callWithErrorHandling (<anonymous>:36177:21) at callWithAsyncErrorHandling (<anonymous>:36184:19) at HTMLButtonElement.invoker (<anonymous>:42826:7)
I'm experencing the same issue when trying to modify which pages the header or footer are showen on. Below is the error that i receive
VM81:1230 Uncaught (in promise) TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Object'
| property 'parent' -> object with constructor 'Object'
--- index 0 closes the circle
at JSON.stringify (<anonymous>)
at Proxy.computeLayoutForSave (<anonymous>:1230:51560)
at Proxy.<anonymous> (<anonymous>:1230:4993)
at Proxy.saveElements (<anonymous>:1232:787)
Which seems to be related to this
computeLayoutForSave() {
this.handleHeaderFooterOverlapping();
let {header: e, body: t, footer: i} = this.computeMainLayout()
, n = {
print_designer_header: JSON.stringify(e || []), // 👈👈👈👈 Here
print_designer_body: JSON.stringify(t),
print_designer_footer: JSON.stringify(i || []),
print_designer_after_table: null