---
title: "Codeunit 131302 Library - Fiscal Year, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/points/
object: https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/
app: "Application Test Library"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/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 131302 Library - Fiscal Year, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/points/

8 procedures and triggers with a step in src/Layers/W1/Tests/ApplicationTestLibrary/LibraryFiscalYear.Codeunit.al, in source order, read from the text, not from a run.

## CloseFiscalYear

[Line 11](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L11).

- [20](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L20) runs [Codeunit 6 Fiscal Year-Close](https://jonas-paprotka.de/ref/codeunit/6-fiscal-year-close/)

## CloseAccountingPeriod

[Line 27](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L27).

- [32](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L32) writes [Table 50 Accounting Period](https://jonas-paprotka.de/ref/table/50-accounting-period/) ModifyAll

## CreateFiscalYear

[Line 35](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L35).

- [49](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L49) calls [Report 93 Create Fiscal Year](https://jonas-paprotka.de/ref/report/93-create-fiscal-year/) `InitializeRequest`
- [50](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L50) calls [Report 93 Create Fiscal Year](https://jonas-paprotka.de/ref/report/93-create-fiscal-year/) `UseRequestPage`
- [51](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L51) calls [Report 93 Create Fiscal Year](https://jonas-paprotka.de/ref/report/93-create-fiscal-year/) `HideConfirmationDialog`

## CheckPostingDate

[Line 55](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L55).

- [62](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L62) calls `CreateFiscalYear`
- [63](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L63) calls `CloseFiscalYear`

## UpdateAllowGAccDeletionBeforeDateOnGLSetup

[Line 106](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L106).

- [112](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L112) writes [Table 98 General Ledger Setup](https://jonas-paprotka.de/ref/table/98-general-ledger-setup/) Modify

## IdentifyOpenAccountingPeriod

[Line 115](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L115).

- [120](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L120) calls `CloseAccountingPeriod`
- [122](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L122) validates [Table 50 Accounting Period](https://jonas-paprotka.de/ref/table/50-accounting-period/) `Starting Date`
- [122](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L122) calls `GetLastPostingDate`
- [123](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L123) writes [Table 50 Accounting Period](https://jonas-paprotka.de/ref/table/50-accounting-period/) Insert(true)

## GetInitialPostingDate

[Line 127](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L127).

- [129](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L129) calls `GetFirstPostingDate`

## CreateClosedAccountingPeriods

[Line 149](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L149).

- [157](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L157) writes [Table 50 Accounting Period](https://jonas-paprotka.de/ref/table/50-accounting-period/) DeleteAll
- [168](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L168) calls [Report 93 Create Fiscal Year](https://jonas-paprotka.de/ref/report/93-create-fiscal-year/) `UseRequestPage`
- [169](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L169) calls [Report 93 Create Fiscal Year](https://jonas-paprotka.de/ref/report/93-create-fiscal-year/) `InitializeRequest`
- [170](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L170) calls [Report 93 Create Fiscal Year](https://jonas-paprotka.de/ref/report/93-create-fiscal-year/) `HideConfirmationDialog`
- [174](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L174) writes [Table 50 Accounting Period](https://jonas-paprotka.de/ref/table/50-accounting-period/) ModifyAll
- [175](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/source/#L175) writes [Table 50 Accounting Period](https://jonas-paprotka.de/ref/table/50-accounting-period/) ModifyAll

## Source

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

JOP-AL, 2026-11-20.
