InventItemPrice::findCostingVersion Method
Gets the price for a specific costing version.
Syntax
client server public static InventPriceMap findCostingVersion(
ItemId _itemId,
CostingVersionId _versionId,
PriceDate _priceDate,
CostingVersionPriceType _priceType,
InventDimId _inventDimId,
[InventSiteId _newSiteId])
Run On
Called
Parameters
- _itemId
Type: ItemId Extended Data Type
The item ID.
- _versionId
Type: CostingVersionId Extended Data Type
The version ID.
- _priceDate
Type: PriceDate Extended Data Type
The date from which the price is created.
- _priceType
Type: CostingVersionPriceType Enumeration
The price type (cost price, sales price, or purchase price).
- _inventDimId
Type: InventDimId Extended Data Type
The ID of the dimensions combination.
- _newSiteId
Type: InventSiteId Extended Data Type
A specific site from which the price should be taken. This will overwrite the value of site in the inventDimId; optional.
Return Value
Type: InventPriceMap Map
A map that is based on either the simulated prices or the starting prices in a specific version.
Remarks
The CostingType is not part of the select statement because the costing type is fixed on the version.