Skip to Content
Menu
This question has been flagged
2 Replies
10171 Views

hiii everyone,

i have inherited account invoice report.

now i need to display total on every page and also display carryforward total on new page and at the end display whole total of invoice line.

if any one have any idea or solution please let me know.

Format:

company logo                    company address.

invoice line 1                100

invoice line 2                100

invoice line 3                100   

invoice line 4                100

-------------------------------------

         sub total:             400


------------New-page------------

invoice line 5                100

invoice line 6                100

-------------------------------------

         sub total:             600

-------------------------------------

        final total:             600                        

Thank You.

Avatar
Discard

Hi Virali,

Have you been able to solve this via page-break.

Thanks, I'm now looking for the solution

Dear @Virali,

Have you found a solution for this?

Anyone please?

Thank you in advance

Best regards

PM

Author

Hi Paulo Matos,

I have not found any solution yet.

Thank you for the update Virali

Best Answer

To do that you need to determine the exact number of lines you will be displaying per page so you could do a manually page break and before that page break you could put your subtotal info.

Find how to do a page break here:

https://www.odoo.com/forum/help-1/question/how-to-include-a-page-break-second-page-in-custom-report-pdf-91277#answer_91281


Conditional page break example for references, breaking after the line 13:

<t t-foreach="o.line_ids" t-as="line">
    <t t-if="line_index == 13">
        <div style="page-break-after: always;"><br/></div>
    </t>
</t>
Avatar
Discard
Author

Thanks, but i dont know no of line. line should be 2 or 20 or more. and i also need to display subtotal in new page starting i will try your solution. thank you Axel.

You don't have to know the number of pages, you just need to know the number of lines that you are able to show on each page to be able to jump to the next page after the number of lines on every page are complete.

Best Answer

Have you found a solution for this?

please share it if you found it.

Avatar
Discard
Author

@mehdi Not so far

Related Posts Replies Views Activity
3
Jan 20
7714
2
Oct 22
7275
1
Jul 20
3922
1
Mar 15
5220
1
Nov 20
4927