Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Stock Replenishment Report template

Posted on by Microsoft Employee

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

  • Suggested answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: Stock Replenishment Report template

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

    Item.calcfields(Inventory);

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

     currreport.skip;

  • mmv Profile Picture
    mmv 11,465 on at
    RE: Stock Replenishment Report template

    Hi,

    Could you verify the solution?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Stock Replenishment Report template

    Thanks Mahesh for the solution, it worked.

  • Verified answer
    mmv Profile Picture
    mmv 11,465 on at
    RE: Stock Replenishment Report template

    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

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,113 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans