{"title":"Table 5804 Avg. Cost Adjmt. Entry Point, extension points 29","url":"https://jonas-paprotka.de/ref/table/5804-avg-cost-adjmt-entry-point/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"table","id":5804,"name":"Avg. Cost Adjmt. Entry Point","app":"Base Application","url":"https://jonas-paprotka.de/ref/table/5804-avg-cost-adjmt-entry-point/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/5804-avg-cost-adjmt-entry-point/source/","path":"src/Layers/W1/BaseApp/Inventory/Costing/AvgCostAdjmtEntryPoint.Table.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:27":{"name":"Item","url":"https://jonas-paprotka.de/ref/table/27-item/"},"table:313":{"name":"Inventory Setup","url":"https://jonas-paprotka.de/ref/table/313-inventory-setup/"},"table:5804":{"name":"Avg. Cost Adjmt. Entry Point","url":"https://jonas-paprotka.de/ref/table/5804-avg-cost-adjmt-entry-point/"},"codeunit:362":{"name":"PeriodPageManagement","url":"https://jonas-paprotka.de/ref/codeunit/362-periodpagemanagement/"},"codeunit:360":{"name":"Accounting Period Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/360-accounting-period-mgt/"},"codeunit:5824":{"name":"Cost Adjustment Params Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/5824-cost-adjustment-params-mgt/"},"codeunit:5823":{"name":"Cost Adjustment Item Runner","url":"https://jonas-paprotka.de/ref/codeunit/5823-cost-adjustment-item-runner/"}},"procs":[{"name":"OnDelete","line":68,"kind":"trigger","steps":[[70,"call","UpdateItem",0]]},{"name":"OnInsert","line":73,"kind":"trigger","steps":[[75,"call","UpdateItem",0]]},{"name":"OnModify","line":78,"kind":"trigger","steps":[[80,"call","UpdateItem",0]]},{"name":"UpdateItem","line":87,"kind":"procedure","access":"local","params":0,"steps":[[89,"call","GetItem",1],[93,"write",27,"Modify"]]},{"name":"ValuationExists","line":97,"kind":"procedure","params":1,"steps":[[105,"call","GetItem",1],[106,"event","OnValuationExistsOnAfterGetItem",0],[109,"call","GetValuationPeriod",1],[113,"call","IsAvgCostCalcTypeItem",1]]},{"name":"UpdateValuationDate","line":144,"kind":"procedure","params":1,"steps":[[148,"ext","table",313,"GetRecordOnce",0],[157,"call","ValuationExists",1],[158,"call","UpdateNextValuations",0],[162,"call","ValuationExists",1],[170,"write",5804,"Modify"],[173,"write",5804,"Insert"],[176,"call","UpdateNextValuations",0]]},{"name":"UpdateNextValuations","line":179,"kind":"procedure","access":"local","params":0,"steps":[[189,"call","IsAvgCostCalcTypeItem",1],[190,"call","AvgCostCalcTypeIsChanged",1],[195,"ext","table",313,"GetRecordOnce",0],[200,"write",5804,"ModifyAll"]]},{"name":"AvgCostCalcTypeIsChanged","line":204,"kind":"procedure","params":1,"steps":[[208,"call","GetAvgCostCalcTypeIsChgPeriod",2]]},{"name":"GetValuationPeriod","line":219,"kind":"procedure","params":1,"steps":[[223,"call","GetFiscalYearAccPeriod",1],[233,"ext","codeunit",362,"FindDate",3],[242,"call","GetFiscalYearAccPeriod",1]]},{"name":"IsAvgCostCalcTypeItem","line":250,"kind":"procedure","params":1,"steps":[[252,"call","GetFiscalYearAccPeriod",1]]},{"name":"GetFiscalYearAccPeriod","line":256,"kind":"procedure","access":"local","params":1,"steps":[[261,"ext","codeunit",360,"InitStartYearAccountingPeriod",2]]},{"name":"SetAvgCostAjmtFilter","line":273,"kind":"procedure","params":1,"steps":[[281,"call","AvgCostCalcTypeIsChanged",1],[282,"call","GetAvgCostCalcTypeIsChgPeriod",2],[287,"event","OnAfterSetAvgCostAjmtFilter",0]]},{"name":"RunCostAdjustmentUntilValuationDate","line":297,"kind":"procedure","params":0,"steps":[[305,"call","GetItem",1],[311,"ext","codeunit",5824,"SetParameters",1],[312,"ext","codeunit",5823,"SetParameters",1],[313,"run","codeunit",5823],[316,"ext","table",27,"UpdateCostIsAdjusted",0]]}]}