public static Price getSTDCostItemPrice(ItemId _itemId,
TransDate _activationDate,
InventDimId _inventDimId)
{
InventDim inventDimLoc;
InventItemPrice inventItemPrice;
inventDimLoc = InventDim::find(_inventDimId);
inventItemPrice = InventItemPrice::findCurrent( _itemId,
CostingVersionPriceType::Purch,
_inventDimId,
_activationDate,
inventDimLoc.InventSiteId,
InventItemCostingType::Standard);
return inventItemPrice.Price;
}
TransDate _activationDate,
InventDimId _inventDimId)
{
InventDim inventDimLoc;
InventItemPrice inventItemPrice;
inventDimLoc = InventDim::find(_inventDimId);
inventItemPrice = InventItemPrice::findCurrent( _itemId,
CostingVersionPriceType::Purch,
_inventDimId,
_activationDate,
inventDimLoc.InventSiteId,
InventItemCostingType::Standard);
return inventItemPrice.Price;
}
No comments:
Post a Comment