PurchCalcItem::newItem Method [AX 2012]
Creates and initializes an instance of the PurchCalcItem class.
server public static PurchCalcItem newItem(
ItemId _itemId,
InventDimId _inventDimId,
Qty _calcQty,
CostProfitSet _profitSet,
[PriceCalcId _priceCalcId,
TransDate _calcDate,
boolean _showProgress,
BOMCalcType _bomCalcType,
CostingVersionId _costingVersionId,
BOMCalcCostingVersionUpdate _calcCostingVersionUpdate,
NoYes _costPriceTransfer,
NoYes _salesPriceTransfer,
BOMCalcFallBack _bomCalcFallBack,
CostingVersionId _fallBackVersionId,
PurchPriceModel _purchPriceModel])
Run On
ServerParameters
- _itemId
- Type: ItemId Extended Data Type
The ID of the item for which the purchase cost calculation is executed.
- _inventDimId
- Type: InventDimId Extended Data Type
The ID of the inventory dimensions.
- _calcQty
- Type: Qty Extended Data Type
The quantity for which to calculate the purchase cost.
- _profitSet
- Type: CostProfitSet Enumeration
The profit settings to use to calculate the sales price.
- _priceCalcId
- Type: PriceCalcId Extended Data Type
The ID of the calculation.
- _calcDate
- Type: TransDate Extended Data Type
The date of the calculation.
- _showProgress
- Type: boolean
A Boolean value that indicates whether the progress indicator should be shown.
- _bomCalcType
- Type: BOMCalcType Enumeration
A BOMCalcType enumeration type that indicates the type of the calculation.
- _costingVersionId
- Type: CostingVersionId Extended Data Type
The ID of the costing version that is used.
- _calcCostingVersionUpdate
- Type: BOMCalcCostingVersionUpdate Enumeration
A BOMCalcCostingVersionUpdate enumeration value that indicates the action to be taken after the calculation.
- _costPriceTransfer
- Type: NoYes Enumeration
A NoYes enumeration value that indicates whether the cost should be transferred into the costing version.
- _salesPriceTransfer
- Type: NoYes Enumeration
A NoYes enumeration value that indicates whether the sales price should be transferred into the costing version.
- _bomCalcFallBack
- Type: BOMCalcFallBack Enumeration
A BOMCalcFallBack enumeration value that specifies the fallback strategy that is used.
- _fallBackVersionId
- Type: CostingVersionId Extended Data Type
The fallback costing version, if the BOMCalcFallBack::Simulated enumeration value is used.
- _purchPriceModel
- Type: PurchPriceModel Enumeration
The source of the base cost.
Show: