Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
10233 Widoki

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.

Awatar
Odrzuć

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

Autor

Hi Paulo Matos,

I have not found any solution yet.

Thank you for the update Virali

Najlepsza odpowiedź

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>
Awatar
Odrzuć
Autor

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.

Najlepsza odpowiedź

Have you found a solution for this?

please share it if you found it.

Awatar
Odrzuć
Autor

@mehdi Not so far

Powiązane posty Odpowiedzi Widoki Czynność
3
sty 20
7766
2
paź 22
7333
1
lip 20
3973
1
mar 15
5270
1
lis 20
5009