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...
Answered

Display line comments on Proforma Invoice

(0) ShareShare
ReportReport
Posted on by 95

Hi community.

On the Out of the Box Proforma Invoice report (1302), the line does not display the line comments.  For example, on a Sales Order Confirmation, the report will display the Sales line, along with any other comment line on the order.  When printing the Proforma Invoice (which is derived from the Sales Order tables) the report only displays the Item lines, it does not display the comments.  Is there a specific flag or method required to include comment lines on the report?  

I've noted in the Proforma Invoice the line description field is titled LineDescription, but in the Sales Order Confirmation it's titled "DescriptionLine".  

Note - I needed the Item Number and Unit of Measure fields in the Proforma Invoice report (not entirely sure how Microsoft thought the Proforma Invoice report could be useful without these fields...) so have added these to the report template.  Not sure if this would cause an issue.

Cheers
Chris.

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at

    Hi chris_7777au ,

    Can you please check if there is a RowVisibility property is set only to show Type = Item lines? or any Sales Line group with this field?

    Thanks.

  • chris_7777au Profile Picture
    95 on at

    Hi Nitin.

    Where do I check this RowVisibility property?  Is this within the word template for the Proforma Invoice report?  If so I need you to give me directions on where to find the property because I haven't seen where I can edit this value.

  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at

    Hi,

    This Type = Item condition already there in the Report design, please open your report 1302 through Visual studio AL and check the below code is already written in the Dataitem (Sales Line). since you can remove or edit anything in the standard report, in that case I would suggest please whole code of this report and paste into New report file and change the report id with your custom report id starting from 50000..99999 and then remove that below condition. then your will be able to see your each sales lines into the report, including comments.

    pastedimage1654492841039v1.png

  • chris_7777au Profile Picture
    95 on at

    Hi Nitin.

    I wasn't working in AL, I had been editing the word template (I'm using a custom word template).  Let me go and do some homework on how to open up the report through Visual Studio and I'll take a look.  I'll come back to you as if this is the answer I'll be sure to verify it and confirm.  

    Thanks.

  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at

    No Problem, thanks.

  • Verified answer
    Hans Werps Profile Picture
    98 on at

    Ok does work with also

    //Item.Get("No.");

    trigger OnPreDataItem()
                    begin
                        TotalWeight := 0;
                        TotalAmount := 0;
                        TotalVATAmount := 0;
                        TotalAmountInclVAT := 0;
                        //SetRange(Type, Type::Item);
                       


                        OnAfterLineOnPreDataItem(Header, Line);
                    end;

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,229

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans