Skip to main content

Notifications

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.

  • Verified answer
    Hans Werps Profile Picture
    Hans Werps 98 on at
    RE: Display line comments on Proforma Invoice

    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;
  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Display line comments on Proforma Invoice

    No Problem, thanks.

  • chris_7777au Profile Picture
    chris_7777au 95 on at
    RE: Display line comments on Proforma Invoice

    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
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Display line comments on Proforma Invoice

    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
    chris_7777au 95 on at
    RE: Display line comments on Proforma Invoice

    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
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Display line comments on Proforma Invoice

    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.

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans