Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

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

(0) ShareShare
ReportReport
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
    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,027 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,852 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans