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

Announcements

News and Announcements icon
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
    27,056 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
    101,995 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
    101,995 Super User 2026 Season 1 on at
    Hi, you can try the following.
     
     
    Thanks.
    ZHU
  • Suggested answer
    YUN ZHU Profile Picture
    101,995 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,344 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,742 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,231

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans