Codeunit 7003 Price Calculation - V15

Base Application, Microsoft.Pricing.Calculation

Source AL, 588 lines

src/Layers/W1/BaseApp/Pricing/Calculation/PriceCalculationV15.Codeunit.allines 20 to 35 of 588, Copyright (c) Microsoft Corporation. MIT

codeunit 7003 "Price Calculation - V15" implements "Price Calculation"{    trigger OnRun()    var        PriceCalculationSetup: Record "Price Calculation Setup";    begin        PriceCalculationSetup.SetRange(Implementation, PriceCalculationSetup.Implementation::"Business Central (Version 15.0)");        PriceCalculationSetup.DeleteAll();        AddSupportedSetup(PriceCalculationSetup);        PriceCalculationSetup.ModifyAll(Default, true);    end;    var        SalesPriceCalcMgt: Codeunit "Sales Price Calc. Mgt.";        PurchPriceCalcMgt: Codeunit "Purch. Price Calc. Mgt.";

All 588 lines

Events 12 in 29

[IntegrationEvent] OnIsDisabled(var Disabled: Boolean)17-29
[IntegrationEvent] OnAfterApplyPriceSalesHandler(var CurrLineWithPrice: Interface "Line With Price"; Header: Variant; Line: Variant; CalledByFieldNo: Integer)new in 18
[IntegrationEvent] OnBeforeApplyDiscountSalesHandler(var CurrLineWithPrice: Interface "Line With Price"; var IsHandled: Boolean)new in 18
[IntegrationEvent] OnFindPriceListLineOnBeforeRunResourceFindCost(var ResourceCost: Record "Resource Cost"; PriceListLine: Record "Price List Line")new in 20
[IntegrationEvent] OnAfterApplyPricePurchHandler(var CurrLineWithPrice: Interface "Line With Price"; Header: Variant; Line: Variant; CalledByFieldNo: Integer)new in 21
[IntegrationEvent] OnAfterApplyDiscountSalesHandler(var CurrLineWithPrice: Interface "Line With Price"; Header: Variant; Line: Variant)new in 28
[IntegrationEvent] OnCountDiscount(TableID: Integer; Header: Variant; Line: Variant; ShowAll: Boolean; var Result: Integer)new in 28

All 12 events

Public procedures 14 in 29

GetID(): Integer17-29
GetLine(var Line: Variant)17-29
Init(NewLineWithPrice: Interface "Line With Price"; PriceCalculationSetup: Record "Price Calculation Setup")17-29
ApplyDiscount()17-29
ApplyPrice(CalledByFieldNo: Integer)17-29
CountDiscount(ShowAll: Boolean): Integer17-29

All 14 procedures

Changes 8 in 28

List17181920212223242526272829
Object1
Events2117
codeunit 7003 "Price Calculation - V15"17-29
no longer obsolete
[IntegrationEvent] OnAfterApplyDiscountSalesHandler(var CurrLineWithPrice: Interface "Line With Price"; Header: Variant; Line: Variant)new in 28
added
[IntegrationEvent] OnCountDiscount(TableID: Integer; Header: Variant; Line: Variant; ShowAll: Boolean; var Result: Integer)new in 28
added
[IntegrationEvent] OnCountPrice(TableID: Integer; Header: Variant; Line: Variant; ShowAll: Boolean; var Result: Integer)new in 28
added
[IntegrationEvent] OnIsDiscountExists(TableID: Integer; Header: Variant; Line: Variant; ShowAll: Boolean; var Result: Boolean)new in 28
added
[IntegrationEvent] OnIsPriceExists(TableID: Integer; Header: Variant; Line: Variant; ShowAll: Boolean; var Result: Boolean)new in 28
added

All 12 changes in 17-29