콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
10558 화면

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.

아바타
취소

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

작성자

Hi Paulo Matos,

I have not found any solution yet.

Thank you for the update Virali

베스트 답변

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>
아바타
취소
작성자

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.

베스트 답변

Have you found a solution for this?

please share it if you found it.

아바타
취소
작성자

@mehdi Not so far

관련 게시물 답글 화면 활동
3
1월 20
8112
2
10월 22
7842
1
7월 20
4284
1
3월 15
5604
1
11월 20
5387