---
title: "Codeunit 131302 Library - Fiscal Year"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/
type: codeunit
id: 131302
name: "Library - Fiscal Year"
app: "Application Test Library"
versions: "28-29"
build: 29.0.54011.55644
countries: "W1, DE, US"
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

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

| | |
| --- | --- |
| App | Application Test Library |
| Versions | 28-29 |
| Minors | W1 28.0-29.0; DE 28.0-29.0; US 28.0-29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/131302-library-fiscal-year/editions.json) |
| Source file | LibraryFiscalYear.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CloseFiscalYear | () | - | public | 28-29 | - | - |
| CloseAccountingPeriod | () | - | public | 28-29 | - | - |
| CreateFiscalYear | () | - | public | 28-29 | - | - |
| CheckPostingDate | (PostingDate: Date) | - | public | 28-29 | - | - |
| GetFirstPostingDate | (Closed: Boolean) | Date | public | 28-29 | - | - |
| GetLastPostingDate | (Closed: Boolean) | Date | public | 28-29 | - | - |
| GetStatisticsPeriod | () | Text | public | 28-29 | - | - |
| GetAccountingPeriodDate | (PostingDate: Date) | Date | public | 28-29 | - | - |
| GetPastNewYearDate | (NumberOfPastYears: Integer) | Date | public | 28-29 | - | - |
| UpdateAllowGAccDeletionBeforeDateOnGLSetup | (NewDate: Date) | - | public | 28-29 | - | - |
| IdentifyOpenAccountingPeriod | () | Date | public | 28-29 | - | - |
| GetInitialPostingDate | () | Date | public | 28-29 | - | - |
| FindAccountingPeriodStartEndDate | (var StartDate: Date; var EndDate: Date; NumberOfPeriods: Integer) | - | public | 28-29 | - | - |
| AccountingPeriodsExists | () | Boolean | public | 28-29 | - | - |
| CreateClosedAccountingPeriods | () | - | public | 28-29 | - | - |

## Source

Symbols: Microsoft.ApplicationTestLibrary.symbols.d852d5d2-a39d-4179-baeb-f99a19e32510, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
