Codeunit 5848 Avg. Cost Entry Point Mgt.

Base Application, Microsoft.Inventory.Costing

Source AL, 76 lines

src/Layers/W1/BaseApp/Inventory/Costing/AvgCostEntryPointMgt.Codeunit.allines 10 to 25 of 76, Copyright (c) Microsoft Corporation. MIT

codeunit 5848 "Avg. Cost Entry Point Mgt." implements "Average Cost Entry Point"{    Permissions = TableData "Avg. Cost Adjmt. Entry Point" = rimd;    procedure GetMaxValuationDate(ItemLedgEntry: Record "Item Ledger Entry"; ValueEntry: Record "Value Entry") MaxValuationDate: Date    var        AvgCostAdjmtEntryPoint: Record "Avg. Cost Adjmt. Entry Point";    begin        MaxValuationDate := 0D;        AvgCostAdjmtEntryPoint.SetRange("Item No.", ItemLedgEntry."Item No.");        if not AvgCostAdjmtEntryPoint.IsAvgCostCalcTypeItem(ValueEntry."Valuation Date") then begin            AvgCostAdjmtEntryPoint.SetRange("Variant Code", ItemLedgEntry."Variant Code");            AvgCostAdjmtEntryPoint.SetRange("Location Code", ItemLedgEntry."Location Code");        end;        AvgCostAdjmtEntryPoint.SetRange("Valuation Date", ValueEntry."Valuation Date", DMY2Date(31, 12, 9999));        if AvgCostAdjmtEntryPoint.FindFirst() then

All 76 lines

Public procedures 6 in 29

GetMaxValuationDate(ItemLedgEntry: Record "Item Ledger Entry"; ValueEntry: Record "Value Entry"): Datenew in 20
LockBuffer()new in 20
UpdateValuationDate(ValueEntry: Record "Value Entry")new in 20
IsEntriesAdjusted(ItemNo: Code[20]; EndingDate: Date): Booleannew in 20
GetValuationPeriod(var CalendarPeriod: Record Date; PostingDate: Date)new in 20
DeleteBuffer(ItemNo: Code[20]; FromValuationDate: Date)new in 20