Codeunit "Price Calculation Mgt."

ID 7001
Namespace: Microsoft.Pricing.Calculation

Methods

RefreshSetup

procedure RefreshSetup(): Boolean

Returns

Type Description
Boolean

GetHandler

procedure GetHandler(LineWithPrice: Interface "Line With Price", var PriceCalculation: Interface "Price Calculation"): Boolean

Parameters

Name Type Description
LineWithPrice Interface Microsoft.Pricing.PriceList."Line With Price"
PriceCalculation Interface Microsoft.Pricing.Calculation."Price Calculation"

Returns

Type Description
Boolean

VerifyMethodImplemented

procedure VerifyMethodImplemented(Method: Enum "Price Calculation Method", PriceType: Enum "Price Type")

Parameters

Name Type Description
Method Enum Microsoft.Pricing.Calculation."Price Calculation Method"
PriceType Enum Microsoft.Pricing.PriceList."Price Type"

FindActiveSubscriptions

procedure FindActiveSubscriptions(): Text

Returns

Type Description
Text

FindSetup

procedure FindSetup(LineWithPrice: Interface "Line With Price", var PriceCalculationSetup: Record "Price Calculation Setup"): Boolean

Parameters

Name Type Description
LineWithPrice Interface Microsoft.Pricing.PriceList."Line With Price"
PriceCalculationSetup Table Microsoft.Pricing.Calculation."Price Calculation Setup"

Returns

Type Description
Boolean

IsExtendedPriceCalculationEnabled

procedure IsExtendedPriceCalculationEnabled(): Boolean

Returns

Type Description
Boolean

GetFeatureKey

procedure GetFeatureKey(): Text[50]

Returns

Type Description
Text[50]

GetFeatureTelemetryName

procedure GetFeatureTelemetryName(): Text[50]

Returns

Type Description
Text[50]

TestIsEnabled

Obsolete

This element will become obsolete from version 19.0. Replaced by the method in Codeunit 7049 Feature - Price Calculation

[Obsolete(Replaced by the method in Codeunit 7049 Feature - Price Calculation,19.0)]
procedure TestIsEnabled()

Events

OnIsExtendedPriceCalculationEnabled

[IntegrationEvent(False,False)]
local procedure OnIsExtendedPriceCalculationEnabled(var Result: Boolean)

Parameters

Name Type Description
Result Boolean

OnFindSupportedSetup

[IntegrationEvent(False,False)]
local procedure OnFindSupportedSetup(var TempPriceCalculationSetup: Record "Price Calculation Setup" temporary)

Parameters

Name Type Description
TempPriceCalculationSetup Table Microsoft.Pricing.Calculation."Price Calculation Setup"

OnGetHandlerOnAfterFindSetup

[IntegrationEvent(False,False)]
local procedure OnGetHandlerOnAfterFindSetup(LineWithPrice: Interface "Line With Price", var PriceCalculation: Interface "Price Calculation", var Result: Boolean, var PriceCalculationSetup: Record "Price Calculation Setup")

Parameters

Name Type Description
LineWithPrice Interface Microsoft.Pricing.PriceList."Line With Price"
PriceCalculation Interface Microsoft.Pricing.Calculation."Price Calculation"
Result Boolean
PriceCalculationSetup Table Microsoft.Pricing.Calculation."Price Calculation Setup"

See also