I wanted to know what we can include in this print format and what we can remove. This is a new print format recently merged into the develop and v15 branches of ERPNext. I look forward to your feedback to improve this print format.
Thank you for your efforts in improving the new print format for Sales Invoices! We appreciate the hard work and the recent updates to the develop and v15 branches.
We have a question regarding the alignment of the section. Currently, the total starts immediately after the item table, and if there are only a few items on the current page, there is an empty space between the total and the footer. We would like to know how we can adjust the print format so that the total aligns closer to the footer and reduces any unnecessary space between the total and the footer on the last page.
Looking forward to hearing your thoughts on this. Thanks again!
ou will need to customize this print format. It is written in Jinja format. You can copy the HTML of this and create a custom new print format. By the way, nice suggestion! I will look into it.
Could you kindly provide a starting point or some guidance on how to achieve this? The screenshots we shared earlier were based on the exact HTML from the GitHub repository you mentioned. We’re also using a custom HTML print format, but unfortunately, we haven’t been able to successfully align the totals closer to the footer or eliminate the extra space on the last page.
We experimented with CSS and JavaScript but only saw minimal improvement. For instance, we tried wrapping the item table inside a <div> like this:
This approach worked partially — only on the first page. When the invoice spans multiple pages, the layout breaks, Also we’re unable to dynamically adjust the height or control the placement of the totals.
If you have any ideas or logic that could help us properly align the total section near the footer — especially in multi-page scenarios — we’d be very grateful. Thanks again for your support and for looking into this!
Thanks so much for your great support and for sharing the full code — we really appreciate the time and effort!
We tested the code, and it works beautifully for single-page invoices. However, in multi-page invoices, the total section still doesn’t align near the footer like it does on a single page. It seems the layout isn’t maintaining the same structure when the invoice spans more than one page.
Thanks again for all your help so far — we’re getting much closer! If there’s any workaround or adjustment we can try to maintain the same alignment across all pages, we’d be grateful for your input.