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

Notifications

Announcements

No record found.

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,225 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
    95,574 Super User 2025 Season 2 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
    95,574 Super User 2025 Season 2 on at
    Hi, you can try the following.
     
     
    Thanks.
    ZHU
  • Suggested answer
    YUN ZHU Profile Picture
    95,574 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans