Codeunit 5810 Change Average Cost Setting

Base Application, Microsoft.Inventory.Costing

Source AL, 221 lines

src/Layers/W1/BaseApp/Inventory/Costing/ChangeAverageCostSetting.Codeunit.allines 12 to 27 of 221, Copyright (c) Microsoft Corporation. MIT

codeunit 5810 "Change Average Cost Setting"{    TableNo = "Inventory Setup";    trigger OnRun()    begin        WindowUpdateDateTime := CurrentDateTime;        WindowIsOpen := false;        AvgCostEntryPointHandler.LockBuffer();        Rec.LockTable();        AccPeriod.LockTable();        Rec.Modify();        if AccPeriod.IsEmpty() then

All 221 lines

Events 1 in 29

[IntegrationEvent] OnProcessItemAvgCostPointOnBeforeFindLastValueEntry(var ValueEntry: Record "Value Entry")17-29

Public procedures 1 in 29

UpdateAvgCostFromAccPeriodChg(AccPeriod: Record "Accounting Period")17-29