Codeunit 7002 Price Calculation - V16

Base Application, Microsoft.Pricing.Calculation

Source AL, 531 lines

src/Layers/W1/BaseApp/Pricing/Calculation/PriceCalculationV16.Codeunit.allines 14 to 29 of 531, Copyright (c) Microsoft Corporation. MIT

codeunit 7002 "Price Calculation - V16" implements "Price Calculation"{    trigger OnRun()    var        PriceCalculationSetup: Record "Price Calculation Setup";    begin        PriceCalculationSetup.SetRange(Implementation, PriceCalculationSetup.Implementation::"Business Central (Version 16.0)");        PriceCalculationSetup.DeleteAll();        AddSupportedSetup(PriceCalculationSetup);        PriceCalculationSetup.ModifyAll(Default, true);    end;    var        CurrPriceCalculationSetup: Record "Price Calculation Setup";        CurrLineWithPrice: Interface "Line With Price";        TempTableErr: Label 'The table passed as a parameter must be temporary.';

All 531 lines

Events 13 in 29

[IntegrationEvent] OnAfterIsBetterLine(PriceListLine: Record "Price List Line"; AmountType: Enum "Price Amount Type"; BestPriceListLine: Record "Price List Line"; var Result: Boolean)17-29
[IntegrationEvent] OnAfterPickBestLine(AmountType: Enum "Price Amount Type"; PriceListLine: Record "Price List Line"; var BestPriceListLine: Record "Price List Line"; var FoundBestLine: Boolean)17-29
[IntegrationEvent] OnBeforeCalcBestAmount(AmountType: Enum "Price Amount Type"; var PriceCalculationBufferMgt: Codeunit "Price Calculation Buffer Mgt."; var PriceListLine: Record "Price List Line")17-29
[IntegrationEvent] OnIsDisabled(var Disabled: Boolean)17-29
[IntegrationEvent] OnAfterIsDegradedLine(PriceListLine: Record "Price List Line"; BestPriceListLine: Record "Price List Line"; var Result: Boolean)new in 18
[IntegrationEvent] OnAfterIsImprovedLine(PriceListLine: Record "Price List Line"; BestPriceListLine: Record "Price List Line"; var Result: Boolean)new in 18
[IntegrationEvent] OnBeforePickBestLine(AmountType: Enum "Price Amount Type"; PriceListLine: Record "Price List Line"; var BestPriceListLine: Record "Price List Line"; var FoundBestLine: Boolean; var IsHandled: Boolean)new in 19

All 15 events in 17-29

Public procedures 20 in 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
CountPrice(ShowAll: Boolean): Integer17-29

All 21 procedures in 17-29

Changes 2 in 25

List17181920212223242526272829
Procedures21
Events221341
AmountTypeFromPriceType(PriceType: Enum "Price Type"): Enum "Price Amount Type"gone after 24
gone
[IntegrationEvent] OnApplyDiscountOnBeforeFillBestLine(var TempPriceListLine: Record "Price List Line" temporary; var PriceCalculationBufferMgt: Codeunit "Price Calculation Buffer Mgt.")new in 25
added

All 16 changes in 17-29