Codeunit 5848 Avg. Cost Entry Point Mgt.
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() thenPublic procedures 6 in 29
| Get | new in 20 |
| Lock | new in 20 |
| Update | new in 20 |
| Is | new in 20 |
| Get | new in 20 |
| Delete | new in 20 |