PCRuntimeLibrary::calculatePriceOrDeliveryDate Method [AX 2012]
Calculates the price or delivery date for a product configuration model with the specified configuration.
client server public static anytype calculatePriceOrDeliveryDate(
PCAdaptor _adaptor,
PCProductConfigurationModel _productConfigurationModel,
PCVariantConfiguration _variantConfiguration,
PCProductModelVersion _productModelVersion,
Common _sourceLine,
ItemId _itemId,
EcoResConfigurationName _configurationName,
EcoResProduct _product,
InventDimId _newInventDimId,
Object _configuratorForm,
[boolean _isPriceCalc])
Run On
CalledParameters
- _adaptor
- Type: PCAdaptor Class
- _productConfigurationModel
- Type: PCProductConfigurationModel Table
The product configuration model to use for the calculation.
- _variantConfiguration
- Type: PCVariantConfiguration Table
The reference to the current product model configuration.
- _productModelVersion
- Type: PCProductModelVersion Table
The active version to use for the calculation.
- _sourceLine
- Type: Common Table
The line that contains the transaction for the item.
- _itemId
- Type: ItemId Extended Data Type
The ID of the item on the item line.
- _configurationName
- Type: EcoResConfigurationName Extended Data Type
The name of the configuration to use to calculate the price and the delivery date.
- _product
- Type: EcoResProduct Table
The product from which the item is released.
- _newInventDimId
- Type: InventDimId Extended Data Type
The inventory dimensions to use as a base for the generation of the BOM and route versions.
- _configuratorForm
- Type: Object Class
The runtime form to use to configure the product model.
- _isPriceCalc
- Type: boolean
true if the operation is the price calculation; false if it is the delivery date calculation.
Show: