Add Onhand On PurchReqTable Form
Mohamed Zakarya
IT Manager |Application Manager| ERP consultant | D365FO | AX 2012 | AX 2009 | Power BI | SSRS |Forms | Reports Design | development X++ | Cost Analysis| Inventory | Production | Procurement | General Ledger |
[SysClientCacheDataMethodAttribute(true)] //This attribute will cache your display method.
public static display Real MYOnHand( PurchReqLine _this)
{
InventOnHand inventOnhand;
InventDim InventDim;
InventDimParm inventDimParm;
inventDimParm.initFromInventDim(_this.inventDim());
inventOnHand = InventOnhand::newParameters(_this.Itemid,_this.InventDim(),inventDimParm);
return inventOnHand.availPhysical();
}