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
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
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
CountPrice
procedure CountPrice(ShowAll: Boolean): Integer
Parameters
Name
Type
Description
ShowAll
Boolean
Returns
FindDiscount
procedure FindDiscount(var TempPriceListLine: Record "Price List Line", ShowAll: Boolean): Boolean
Parameters
Returns
FindPrice
procedure FindPrice(var TempPriceListLine: Record "Price List Line", ShowAll: Boolean): Boolean
Parameters
Returns
IsDiscountExists
procedure IsDiscountExists(ShowAll: Boolean): Boolean
Parameters
Name
Type
Description
ShowAll
Boolean
Returns
IsPriceExists
procedure IsPriceExists(ShowAll: Boolean): Boolean
Parameters
Name
Type
Description
ShowAll
Boolean
Returns
PickDiscount
PickPrice
ShowPrices
procedure ShowPrices(var TempPriceListLine: Record "Price List Line")
Parameters
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
OnAfterApplyPricePurchHandler
[IntegrationEvent(False,False)]
local procedure OnAfterApplyPricePurchHandler(var CurrLineWithPrice: Interface "Line With Price", Header: Variant, Line: Variant, CalledByFieldNo: Integer)
Parameters
OnFindPriceListLineOnBeforeRunResourceFindCost
[IntegrationEvent(False,False)]
local procedure OnFindPriceListLineOnBeforeRunResourceFindCost(var ResourceCost: Record "Resource Cost", PriceListLine: Record "Price List Line")
Parameters
OnBeforeApplyDiscountSalesHandler
[IntegrationEvent(False,False)]
local procedure OnBeforeApplyDiscountSalesHandler(var CurrLineWithPrice: Interface "Line With Price", var IsHandled: Boolean)
Parameters
See also