Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Inventory Trial Balance Reporting

(0) ShareShare
ReportReport
Posted on by

I'm having some trouble putting together an SSRS report to show the historical layers for inventory items that make up the current on-hand quantity. I currently have a report that shows both the on-hand quantity and all of the layered transactions (sales and purchases) that make up that quantity, but going forward, I would like only to see the most recent layers associated that make up the current quantity. If we use the same item for the next 5 years, I don't want tosee 5 years worth of transactions if the last 7 transactions actually make up the current quantity. Not sure how to write that in SQL to translate to my report.

Anyone else done something like this?

*This post is locked for comments

  • Suggested answer
    RE: Inventory Trial Balance Reporting

    I was able to do exactly as you suggested. Thanks for your help! I got the exact report we needed.

  • Verified answer
    Victoria Yudin Profile Picture
    Victoria Yudin 22,766 on at
    RE: Inventory Trial Balance Reporting

    Hi Jason,

    I think Leslie is exactly right. Please take a look at this view on my blog where I am excluding any cost layer that has no quantity left to sell: victoriayudin.com/.../sql-view-for-inventory-quantities-on-hand

    That may give you a good starting point for your report.

  • RE: Inventory Trial Balance Reporting

    I have not tried that. To be honest, I'm not sure what that would look like script wise. Here's how I am getting the FIFO value based on the most recent transactions and the current qty on-hand:

    -----------FIFO VALUE CALC----------------
    ,
    (select SUM(QUANTITY * UNITCOST) AS 'CURRVALUE'
    from x_inventory_trx_hitb
    WHERE SITE = ts.SITE AND ITEMNMBR = ts.ITEMNMBR
    HAVING SUM(QUANTITY) = (SELECT TOP 1 QUANTITY FROM x_inventory_trx_hitb_sum WHERE SITE = ts.SITE AND ITEMNMBR = TS.ITEMNMBR)) AS 'FIFOVALUE'
    -----------------------------------------------------------------

  • L Vail Profile Picture
    L Vail 65,271 on at
    RE: Inventory Trial Balance Reporting

    Have you considered excluding the layers where the receipt has been completely sold?

    Leslie

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... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans