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
write in the code - trigger Item-OnAfterGetRecord - following:
Item.calcfields(Inventory);
if Item.Inventory >= Item."Minimum Stock Qty." then
currreport.skip;
Hi,
Could you verify the solution?
Thanks Mahesh for the solution, it worked.
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,113 Super User 2024 Season 2
Martin Dráb 229,918 Most Valuable Professional
nmaenpaa 101,156