Skip to main content

Notifications

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
    Community Member Profile Picture
    on at
    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
    22,768 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.

  • Community Member Profile Picture
    on at
    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
    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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Almas Mahfooz Profile Picture

Almas Mahfooz 3 User Group Leader

Featured topics

Product updates

Dynamics 365 release plans