{"title":"Codeunit 5820 Close Inventory Period, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/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":"codeunit","id":5820,"name":"Close Inventory Period","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/source/","path":"src/Layers/W1/BaseApp/Inventory/Setup/CloseInventoryPeriod.Codeunit.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":{"codeunit:5849":{"name":"Avg. Cost Entry Point Handler","url":"https://jonas-paprotka.de/ref/codeunit/5849-avg-cost-entry-point-handler/"},"table:5814":{"name":"Inventory Period","url":"https://jonas-paprotka.de/ref/table/5814-inventory-period/"},"table:5815":{"name":"Inventory Period Entry","url":"https://jonas-paprotka.de/ref/table/5815-inventory-period-entry/"}},"procs":[{"name":"OnRun","line":17,"kind":"trigger","steps":[[33,"event","OnRunOnBeforeCheck",0],[37,"call","CheckCostIsAdjusted",1],[38,"call","CheckOpenOutboundEntryExist",1],[40,"call","AccPeriodIsClosed",1],[44,"call","UpdateInvtPeriod",1],[45,"call","CreateInvtPeriodEntry",1]]},{"name":"CheckCostIsAdjusted","line":74,"kind":"procedure","access":"local","params":1,"steps":[[80,"ext","codeunit",5849,"IsEntriesAdjusted",2]]},{"name":"UpdateInvtPeriod","line":121,"kind":"procedure","access":"local","params":1,"steps":[[135,"write",5814,"Modify"],[136,"call","CreateInvtPeriodEntry",1],[140,"write",5814,"Modify"]]},{"name":"CreateInvtPeriodEntry","line":143,"kind":"procedure","access":"local","params":1,"steps":[[168,"write",5815,"Insert"]]}]}