PurchCalcCost.initPurchCalc Method [AX 2012]

Initializes an instance of the PurchCalcCost class.

public void initPurchCalc(
    TransDate _calcDate, 
    ItemId _itemId, 
    InventDimId _inventDimId, 
    Qty _consumptionInvent, 
    Qty _tradeAgreementInventQty, 
    VendAccount _vendAccount, 
    CostProfitSet _profitSet, 
   [CostingVersionId _costingVersionId, 
    BOMCalcFallBack _bomCalcFallBack, 
    CostingVersionId _fallBackVersionId, 
    PurchPriceModel _purchPriceModel, 
    InventSiteId _siteId])

Run On

Called

Parameters

_calcDate
Type: TransDate Extended Data Type
The date of the calculation.
_itemId
Type: ItemId Extended Data Type
The ID of the item.
_inventDimId
Type: InventDimId Extended Data Type
The dimension of the item.
_consumptionInvent
Type: Qty Extended Data Type
The consumption, in inventory units.
_tradeAgreementInventQty
Type: Qty Extended Data Type
The quantity for the trade agreement.
_vendAccount
Type: VendAccount Extended Data Type
The account of the vendor for the trade agreement.
_profitSet
Type: CostProfitSet Enumeration
The profit settings to use to calculate the sales price.
_costingVersionId
Type: CostingVersionId Extended Data Type
The ID of the costing version used.
_bomCalcFallBack
Type: BOMCalcFallBack Enumeration
A BOMCalcFallBack enumeration value that specifies the fallback strategy 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.
_siteId
Type: InventSiteId Extended Data Type
The site for the calculation.

The _purchPriceModel parameter can be the PurchPriceModel::PurchPrice or PurchPriceModel::PriceDisc enumeration value.

Community Additions

ADD
Show: