Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

How do I create sales report breaking down quantity and sales price by batch number?

Posted on by 10
Hi All, I am trying to create a report to view sales by batch number. My main table is 'custinvoicetrans'. The problem I am facing now is that an item could come from different batches, however, 'custinvoicetrans' table doesn't split by batch number. So, I join to 'inventtrans' table but that creates new problem which the UOM is different between the two tables. And so I play around with 'unitofmeasure' and 'unitofmeasureconversion' tables but with no luck. Can someone share with me the proper way to do this select query?
  • tk.l Profile Picture
    tk.l 10 on at
    RE: How do I create sales report breaking down quantity and sales price by batch number?

    the query seems ok when sales UOM found in the inventtablemodule table for the same itemid. refer to the picture below.

    4162.COM_5F00_ok.png

    however, when sales UOM not found in the inventtablemodule table for the itemid, my query will not gives the correct sales amount.

    2664.COM_5F00_not_5F00_ok.png

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans