web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    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

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

    Thanks Mahesh for the solution, it worked.

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

    Hi,

    Could you verify the solution?

  • Suggested answer
    keoma Profile Picture
    32,729 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;

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans