InventModelType.costPricePcs Method [AX 2012]
Determines the cost for one piece.
Syntax
public CostPrice costPricePcs(
InventSum _inventSum,
InventModelGroup _inventModelGroup,
[boolean _onHandOnly,
PriceDate _priceDate])
Run On
Called
Parameters
- _inventSum
Type: InventSum Table
The InventSum record for which to determine the cost.
- _inventModelGroup
Type: InventModelGroup Table
The InventModelGroup record that is related to the item.
- _onHandOnly
Type: boolean
A Boolean value that indicates whether to return 0 if the available quantity or values is less than or equal zero; optional.
- _priceDate
Type: PriceDate Extended Data Type
The date for the cost.
Return Value
Type: CostPrice Extended Data Type
The cost for one piece.