Codeunit 7001 Price Calculation Mgt.

Base Application, Microsoft.Pricing.Calculation

Source AL, 202 lines

src/Layers/W1/BaseApp/Pricing/Calculation/PriceCalculationMgt.Codeunit.allines 15 to 30 of 202, Copyright (c) Microsoft Corporation. MIT

codeunit 7001 "Price Calculation Mgt."{    trigger OnRun()    begin        RefreshSetup();    end;    var        FeatureTelemetry: Codeunit "Feature Telemetry";        ManualLbl: Label 'Manual', Locked = true;        TwoPlacesTxt: Label '%1-%2;', Locked = true;        UseCustomizedLookupTxt: Label 'Use Customized Lookup', Locked = true;        SubscriptionsTxt: Label 'Subscriptions', Locked = true;        ExtendedPriceFeatureIdTok: Label 'SalesPrices', Locked = true;        ExtendedPriceFeatureTelemetryNameLbl: Label 'New Sales Pricing', Locked = true;        UsedCustomLookupTxt: Label 'Used custom lookup in table %1.', Comment = '%1 = table id', Locked = true;

All 202 lines

Events 3 in 29

[IntegrationEvent] OnIsExtendedPriceCalculationEnabled(var Result: Boolean)17-29
[IntegrationEvent] OnFindSupportedSetup(var TempPriceCalculationSetup: Record "Price Calculation Setup" temporary)17-29
[IntegrationEvent] OnGetHandlerOnAfterFindSetup(LineWithPrice: Interface "Line With Price"; var PriceCalculation: Interface "Price Calculation"; var Result: Boolean; var PriceCalculationSetup: Record "Price Calculation Setup")new in 22

All 4 events in 17-29

Public procedures 8 in 29

RefreshSetup(): Boolean17-29
GetHandler(LineWithPrice: Interface "Line With Price"; var PriceCalculation: Interface "Price Calculation"): Boolean17-29
VerifyMethodImplemented(Method: Enum "Price Calculation Method"; PriceType: Enum "Price Type")17-29
FindSetup(LineWithPrice: Interface "Line With Price"; var PriceCalculationSetup: Record "Price Calculation Setup"): Boolean17-29
IsExtendedPriceCalculationEnabled(): Boolean17-29
GetFeatureKey(): Text[50]17-29

All 11 procedures in 17-29

Changes 1 in 28

List17181920212223242526272829
Procedures1311
Events12
TestIsEnabled()gone after 27
gone

All 9 changes in 17-29