---
title: "Codeunit 5820 Close Inventory Period, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/points/
object: https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
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/"
---

# Codeunit 5820 Close Inventory Period, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/points/

4 procedures and triggers with a step in src/Layers/W1/BaseApp/Inventory/Setup/CloseInventoryPeriod.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 17](https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/source/#L17), trigger.

- [33](https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/source/#L33) raises `OnRunOnBeforeCheck`
- [37](https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/source/#L37) calls `CheckCostIsAdjusted`
- [38](https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/source/#L38) calls `CheckOpenOutboundEntryExist`
- [40](https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/source/#L40) calls `AccPeriodIsClosed`
- [44](https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/source/#L44) calls `UpdateInvtPeriod`
- [45](https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/source/#L45) calls `CreateInvtPeriodEntry`

## CheckCostIsAdjusted

[Line 74](https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/source/#L74), local.

- [80](https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/source/#L80) calls [Codeunit 5849 Avg. Cost Entry Point Handler](https://jonas-paprotka.de/ref/codeunit/5849-avg-cost-entry-point-handler/) `IsEntriesAdjusted`

## UpdateInvtPeriod

[Line 121](https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/source/#L121), local.

- [135](https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/source/#L135) writes [Table 5814 Inventory Period](https://jonas-paprotka.de/ref/table/5814-inventory-period/) Modify
- [136](https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/source/#L136) calls `CreateInvtPeriodEntry`
- [140](https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/source/#L140) writes [Table 5814 Inventory Period](https://jonas-paprotka.de/ref/table/5814-inventory-period/) Modify

## CreateInvtPeriodEntry

[Line 143](https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/source/#L143), local.

- [168](https://jonas-paprotka.de/ref/codeunit/5820-close-inventory-period/source/#L168) writes [Table 5815 Inventory Period Entry](https://jonas-paprotka.de/ref/table/5815-inventory-period-entry/) Insert

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
