web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Not all lines are not printed on ProForma report

(1) ShareShare
ReportReport
Posted on by 6
Hi all,
 
Cant figure out how to print lines with type other than Item on ProFormaInvoice report.
 
Any ideas?
 
Best regards
I have the same question (0)
  • Gerardo Rentería García Profile Picture
    25,535 Most Valuable Professional on at
    Hi
    Is this the report? Well, it makes a filter for only the product lines, you could try and subscribe to the event mentioned there, but I'm not sure what could appear in the report after a filter change.
     
    report 1302 "Standard Sales - Pro Forma Inv"
     
     trigger OnPreDataItem()
                    begin
                        TotalWeight := 0;
                        TotalAmount := 0;
                        TotalVATAmount := 0;
                        TotalAmountInclVAT := 0;
                        SetRange(Type, Type::Item);
                        OnAfterLineOnPreDataItem(Header, Line);
                    end;
    BR
    GR
  • Suggested answer
    YUN ZHU Profile Picture
    97,471 Super User 2026 Season 1 on at
    This is standard behavior. If you need to print something other than Item, you need to customize it using the event mentioned by gdrenteria.
     
    Thanks.
    ZHU
  • User365 Profile Picture
    6 on at
    gdrenteria, as i see the data for the lines is collected from the Item table in this procedure
     
    local procedure GetItemForRec(ItemNo: Code[20])
        var
            IsHandled: Boolean;
        begin
            IsHandled := false;
            OnBeforeGetItemForRec(ItemNo, IsHandled);
            if IsHandled then
                exit;
     
            Item.Get(ItemNo);
        end;
     
    And as far as i know we cant replace this logic with purely custom one. Or am i wrong?
  • Suggested answer
    YUN ZHU Profile Picture
    97,471 Super User 2026 Season 1 on at
    Hi, you can try the following.
     
     
    Thanks.
    ZHU
  • Suggested answer
    YUN ZHU Profile Picture
    97,471 Super User 2026 Season 1 on at
    Hi, I just made a detailed explanation and hope it gives you some tips.
    Dynamics 365 Business Central: How to print all type of lines in standard Pro Forma Invoice report – Customization
     
     
    Thanks.
    ZHU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,117 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,026 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans