Hello,
This post will help you to get invent onHand as per site/warehouse or InventDimId itself.
InventDim inventDim;
InventDimParm inventDimParm;
InventOnHand inventOnHand;
ItemId itemId;
InventDimId inventDimId;
itemId = "XYZ";
inventDim.InventSiteId = "XYZ";
inventDim.InventLocationId = "XYZ";
inventDimParm.initFromInventDim(inventDim);
inventOnHand = InventOnhand::newParameters(itemId, inventDim, inventDimParm);
inventOnHand.availPhysical();
//or
inventDimId = "XYZ";
inventDim = InventDim::find(inventDimId); //you can use as SalesLine.InventDimId
inventDimParm.initFromInventDim(inventDim);
inventOnHand = InventOnhand::newParameters(itemId, inventDim, inventDimParm);
inventOnHand.availPhysical();
Happy Daxing!
No comments:
Post a Comment