web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Stock Replenishment Report template

(0) ShareShare
ReportReport
Posted on by

Hi,

I am designing a Stock Replenishment in Nav 2013 using SQL Server 2012 Report Builder. I want to write a code, for if the Inventory Qty. for an Item is less than the Minimum Stock Qty. the record line is to be displayed, else the record line show not be displayed.

Please help.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    mmv Profile Picture
    11,471 on at

    Hi,

    On the report Layout, for that line, in the Properties -> Visibility, you may write the expression Fields!InventoryQty.Value >= Fields!MinimumStockQty.Value

    In the above InventoryQty and MinimumStockQty are the values defined in the DataItem

  • Community Member Profile Picture
    on at

    Thanks Mahesh for the solution, it worked.

  • mmv Profile Picture
    11,471 on at

    Hi,

    Could you verify the solution?

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    write in the code - trigger Item-OnAfterGetRecord - following:

    Item.calcfields(Inventory);

    if Item.Inventory >= Item."Minimum Stock Qty." then

     currreport.skip;

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans