Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

How to include all line items on the Sales Order Confirmation report

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Out of the box, the Sales Order Confirmation does not display line items after they have been delivered or invoiced. We need the report to display all line items regardless of the line status. Does anyone know if there is a setting that can be changed or what code needs to be modified to make this happen.

Thanks in advance for any help you can provide?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to include all line items on the Sales Order Confirmation report

    I've added code to add lines from the salesLine table with a status = (delivered or invoiced). However, its still not working. Would either one of you be interested in doing a join me to help resolved the issue? I will be happy to pay for your time.

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: How to include all line items on the Sales Order Confirmation report

    Crispin has mentioned this above correctly that the reason while your lines are not coming are because those confirm transactions only exist for the non-invoiced lines.

    And yes, you could modify the data provider class to insert the other rows using the SalesLine as well into the Tmp table, if you would like to include all on the report (for whatever reason).

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to include all line items on the Sales Order Confirmation report

    I queried the custConfirmTrans table and it doesn't appear to have the invoiced line items so I'm not sure if I do a "select * from custConfirmTrans = salesID" if it will return all of the records for the Sales Order. I wonder if I populate the temp table from the SalesLine table because that has all of the line items??? What  are your thoughts? I want to minimize the code changes as much as possible. Thanks for your help!!!!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to include all line items on the Sales Order Confirmation report

    Yes, making sense. Where should I add the code from above:

    CustConfirmTrans where SalesId == ""..

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to include all line items on the Sales Order Confirmation report

    Thanks guys!! .... working on it right now.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to include all line items on the Sales Order Confirmation report

    Yes, walking through the code. I Viewed the SQL select statement for tradelooptrans (within createData), however I never see a filter as part of the SQL statement. Just a straight forward select statement

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to include all line items on the Sales Order Confirmation report

    Thanks for the reply.... I have been looking at the method for a couple of hours thinking the filter had to be in there but I don't see it. Which line is the filter?

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

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans