Four days to new year and counting!
Today, I want to share you a function to get InventOnHand by ItemId and InventLocationId.
InventOnHand findOnHandByLocationId(ItemId _itemId, InventLocationId _inventLocationId)
{
InventDim inventDim;
InventDimParm inventDimParm;
InventOnHand inventOnHand = new InventOnHand();
;
inventDim.InventLocationId = _inventLocationId;
inventDimParm.initFromInventDim(inventDim);
inventOnHand = InventOnHand::newParameters(_itemid,
inventDim,
inventDimParm);
return inventOnHand;
}
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.