InventModelType_StdCost.inventCostPriceMap Method [AX 2012]
Retrieves the cost of an item.
Syntax
public InventPriceMap inventCostPriceMap(
InventTable _inventTable,
InventDimId _inventDimId,
[InventTableModule _inventTableModuleInvent,
TransDate _transDate,
InventSiteId _newSiteId,
boolean _throwError])
Run On
Called
Parameters
- _inventTable
Type: InventTable Table
The InventTable record of the item.
- _inventDimId
Type: InventDimId Extended Data Type
The InventDimID ID value to retrieve the cost.
- _inventTableModuleInvent
Type: InventTableModule Table
The InventTableModule record to retrieve the cost; optional.
- _transDate
Type: TransDate Extended Data Type
The date to retrieve the cost; optional.
- _newSiteId
Type: InventSiteId Extended Data Type
The site to retrieve the cost; optional.
- _throwError
Type: boolean
A Boolean value that indicates whether to throw an error if no cost is found; optional. false.
Return Value
Type: InventPriceMap Map
A InventPriceMap record with the cost for the item.