BOMCalcItemOper.getCostPrice Method [AX 2012]
Gets the cost price.
Syntax
Note
The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.
Microsoft Dynamics AX 2012 R3
public container getCostPrice(RouteCostCategoryId _costCategoryId, BOMCalcTrans _bomCalcTrans)
Microsoft Dynamics AX 2012 R2 (SYS)
public container getCostPrice(RouteCostCategoryId _costCategoryId, BOMCalcTrans _bomCalcTrans)
Microsoft Dynamics AX 2012 Feature Pack (SYS)
public Price getCostPrice(RouteCostCategoryId _costCategoryId, BOMCalcTrans _bomCalcTrans)
Microsoft Dynamics AX 2012 (FPK)
public Price getCostPrice(RouteCostCategoryId _costCategoryId, BOMCalcTrans _bomCalcTrans)
Microsoft Dynamics AX 2012 (SYS)
public Price getCostPrice(RouteCostCategoryId _costCategoryId, BOMCalcTrans _bomCalcTrans)
Run On
Called
Parameters
- _costCategoryId
Type: RouteCostCategoryId Extended Data Type
A cost category ID.
- _bomCalcTrans
Type: BOMCalcTrans Table
A BOM calculation transaction.
Return Value
Type: container
The cost price.
Exceptions
Exception | Condition |
---|---|
Error | The calculation fallback type is unknown. |
Remarks
The return type has been changed to include a secondary currency.