public real GetCostPrice(ItemId _itemId, InventLocationId _inventLocationId)
{
InventDimParm inventDimParm;
InventOnHand inventOnHand;
InventSum inventSum;
InventDim inventDim;
;
select firstOnly1 inventSum where inventSum.ItemId == _itemId;
//inventDim.InventSiteId = "SiteId";
inventDim.InventLocationId = _inventLocationId;
inventDimParm.initFromInventDim(inventDim);
inventOnHand = InventOnHand::newItemDim(inventSum.ItemId, inventDim, inventDimParm);
return inventOnHand.costPricePcs();
// info(strfmt("%1", inventOnHand.costPricePcs()));
}
Thanks
Uma
{
InventDimParm inventDimParm;
InventOnHand inventOnHand;
InventSum inventSum;
InventDim inventDim;
;
select firstOnly1 inventSum where inventSum.ItemId == _itemId;
//inventDim.InventSiteId = "SiteId";
inventDim.InventLocationId = _inventLocationId;
inventDimParm.initFromInventDim(inventDim);
inventOnHand = InventOnHand::newItemDim(inventSum.ItemId, inventDim, inventDimParm);
return inventOnHand.costPricePcs();
// info(strfmt("%1", inventOnHand.costPricePcs()));
}
Thanks
Uma
No comments:
Post a Comment