Codeunit "Price Calculation - V15"

ID 7003
Namespace: Microsoft.Pricing.Calculation

Obsolete

This element will become obsolete from version 16.0. Replaced by the new implementation (V16) of price calculation.

Implements

Properties

Name Value
ObsoleteState Pending
ObsoleteReason Replaced by the new implementation (V16) of price calculation.
ObsoleteTag 16.0

Methods

GetID

procedure GetID(): Integer

Returns

Type Description
Integer

GetLine

procedure GetLine(var Line: Variant)

Parameters

Name Type Description
Line Variant

Init

procedure Init(NewLineWithPrice: Interface "Line With Price", PriceCalculationSetup: Record "Price Calculation Setup")

Parameters

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

ApplyDiscount

procedure ApplyDiscount()

ApplyPrice

procedure ApplyPrice(CalledByFieldNo: Integer)

Parameters

Name Type Description
CalledByFieldNo Integer

CountDiscount

procedure CountDiscount(ShowAll: Boolean): Integer

Parameters

Name Type Description
ShowAll Boolean

Returns

Type Description
Integer

CountPrice

procedure CountPrice(ShowAll: Boolean): Integer

Parameters

Name Type Description
ShowAll Boolean

Returns

Type Description
Integer

FindDiscount

procedure FindDiscount(var TempPriceListLine: Record "Price List Line", ShowAll: Boolean): Boolean

Parameters

Name Type Description
TempPriceListLine Table Microsoft.Pricing.PriceList."Price List Line"
ShowAll Boolean

Returns

Type Description
Boolean

FindPrice

procedure FindPrice(var TempPriceListLine: Record "Price List Line", ShowAll: Boolean): Boolean

Parameters

Name Type Description
TempPriceListLine Table Microsoft.Pricing.PriceList."Price List Line"
ShowAll Boolean

Returns

Type Description
Boolean

IsDiscountExists

procedure IsDiscountExists(ShowAll: Boolean): Boolean

Parameters

Name Type Description
ShowAll Boolean

Returns

Type Description
Boolean

IsPriceExists

procedure IsPriceExists(ShowAll: Boolean): Boolean

Parameters

Name Type Description
ShowAll Boolean

Returns

Type Description
Boolean

PickDiscount

procedure PickDiscount()

PickPrice

procedure PickPrice()

ShowPrices

procedure ShowPrices(var TempPriceListLine: Record "Price List Line")

Parameters

Name Type Description
TempPriceListLine Table Microsoft.Pricing.PriceList."Price List Line"

Events

OnIsDisabled

[IntegrationEvent(False,False)]
local procedure OnIsDisabled(var Disabled: Boolean)

Parameters

Name Type Description
Disabled Boolean

OnAfterApplyPriceSalesHandler

[IntegrationEvent(False,False)]
local procedure OnAfterApplyPriceSalesHandler(var CurrLineWithPrice: Interface "Line With Price", Header: Variant, Line: Variant, CalledByFieldNo: Integer)

Parameters

Name Type Description
CurrLineWithPrice Interface Microsoft.Pricing.PriceList."Line With Price"
Header Variant
Line Variant
CalledByFieldNo Integer

OnAfterApplyPricePurchHandler

[IntegrationEvent(False,False)]
local procedure OnAfterApplyPricePurchHandler(var CurrLineWithPrice: Interface "Line With Price", Header: Variant, Line: Variant, CalledByFieldNo: Integer)

Parameters

Name Type Description
CurrLineWithPrice Interface Microsoft.Pricing.PriceList."Line With Price"
Header Variant
Line Variant
CalledByFieldNo Integer

OnFindPriceListLineOnBeforeRunResourceFindCost

[IntegrationEvent(False,False)]
local procedure OnFindPriceListLineOnBeforeRunResourceFindCost(var ResourceCost: Record "Resource Cost", PriceListLine: Record "Price List Line")

Parameters

Name Type Description
ResourceCost Table Microsoft.Projects.Resources.Pricing."Resource Cost"
PriceListLine Table Microsoft.Pricing.PriceList."Price List Line"

OnBeforeApplyDiscountSalesHandler

[IntegrationEvent(False,False)]
local procedure OnBeforeApplyDiscountSalesHandler(var CurrLineWithPrice: Interface "Line With Price", var IsHandled: Boolean)

Parameters

Name Type Description
CurrLineWithPrice Interface Microsoft.Pricing.PriceList."Line With Price"
IsHandled Boolean

See also