InventModelType_StdCost.costPricePcs Method [AX 2012]
Calculates the cost of 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 to determine the cost.
- _inventModelGroup
Type: InventModelGroup Table
The inventModelGroup record related to the item.
- _onHandOnly
Type: boolean
A Boolean value that indicates the return value is zero.
- _priceDate
Type: PriceDate Extended Data Type
The date for the cost.
Return Value
Type: CostPrice Extended Data Type
The cost for one piece.