---
title: "Report 5692 Calculate Depreciation, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/points/
object: https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/
checked: 2026-11-20
changed: 2026-10-21
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/"
---

# Report 5692 Calculate Depreciation, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/points/

12 procedures and triggers with a step in src/Layers/W1/BaseApp/FixedAssets/Depreciation/CalculateDepreciation.Report.al, in source order, read from the text, not from a run.

## CalcDerogDepr.OnAfterGetRecord

[Line 35](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L35), trigger.

- [40](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L40) calls [Codeunit 5610 Calculate Depreciation](https://jonas-paprotka.de/ref/codeunit/5610-calculate-depreciation/) `Calculate`
- [48](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L48) calls `CalcDerogDeprAmount`
- [52](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L52) writes [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) Insert
- [56](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L56) calls `CalcDerogDeprAmount`
- [60](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L60) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Insert

## CalcDerogDepr.OnAfterGetRecord

[Line 65](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L65), trigger.

- [77](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L77) raises `OnBeforeCalculateDepreciation`
- [80](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L80) calls [Codeunit 5610 Calculate Depreciation](https://jonas-paprotka.de/ref/codeunit/5610-calculate-depreciation/) `Calculate`
- [91](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L91) raises `OnAfterCalculateDepreciation`
- [102](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L102) writes [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) Insert
- [110](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L110) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Insert
- [121](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L121) writes [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) Insert
- [129](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L129) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Insert

## CalcDerogDepr.OnPostDataItem

[Line 137](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L137), trigger.

- [144](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L144) calls [Table 5605 FA Journal Setup](https://jonas-paprotka.de/ref/table/5605-fa-journal-setup/) `FAJnlName`
- [145](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L145) calls [Table 5605 FA Journal Setup](https://jonas-paprotka.de/ref/table/5605-fa-journal-setup/) `GetFANoSeries`
- [150](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L150) calls [Table 5605 FA Journal Setup](https://jonas-paprotka.de/ref/table/5605-fa-journal-setup/) `GetFAJnlDocumentNo`
- [156](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L156) calls `InsertBonusDepreciationFAJnlLine`
- [158](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L158) raises `OnPostFixedAssetOnAfterFAJnlLineInit`
- [160](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L160) calls [Table 5605 FA Journal Setup](https://jonas-paprotka.de/ref/table/5605-fa-journal-setup/) `SetFAJnlTrailCodes`
- [169](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L169) validates [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) `FA No.`
- [173](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L173) validates [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) `Depreciation Book Code`
- [174](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L174) validates [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) `Amount`
- [179](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L179) raises `OnBeforeFAJnlLineInsert`
- [180](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L180) writes [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) Insert(true)
- [187](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L187) calls [Table 5605 FA Journal Setup](https://jonas-paprotka.de/ref/table/5605-fa-journal-setup/) `GenJnlName`
- [188](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L188) calls [Table 5605 FA Journal Setup](https://jonas-paprotka.de/ref/table/5605-fa-journal-setup/) `GetGenNoSeries`
- [193](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L193) calls [Table 5605 FA Journal Setup](https://jonas-paprotka.de/ref/table/5605-fa-journal-setup/) `GetGenJnlDocumentNo`
- [199](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L199) calls `InsertBonusDepreciationGenJnlLine`
- [201](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L201) raises `OnBeforeGenJnlLineCreate`
- [203](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L203) calls [Table 5605 FA Journal Setup](https://jonas-paprotka.de/ref/table/5605-fa-journal-setup/) `SetGenJnlTrailCodes`
- [213](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L213) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Account No.`
- [217](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L217) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Depreciation Book Code`
- [218](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L218) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Amount`
- [223](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L223) raises `OnBeforeGenJnlLineInsert`
- [224](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L224) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Insert(true)
- [227](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L227) calls [Codeunit 5601 FA Insert G/L Account](https://jonas-paprotka.de/ref/codeunit/5601-fa-insert-g-l-account/) `GetBalAcc`
- [228](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L228) raises `OnAfterFAInsertGLAccGetBalAcc`
- [230](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L230) raises `OnAfterPostDataItem`

## OnOpenPage

[Line 334](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L334), trigger.

- [339](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L339) calls [Codeunit 4030 Client Type Management](https://jonas-paprotka.de/ref/codeunit/4030-client-type-management/) `GetCurrentClientType`

## OnInitReport

[Line 354](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L354), trigger.

- [356](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L356) raises `OnBeforeOnInitReport`

## OnPostReport

[Line 359](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L359), trigger.

- [366](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L366) calls [Codeunit 29 Error Message Handler](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/) `HasErrors`
- [367](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L367) calls [Codeunit 29 Error Message Handler](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/) `ShowErrors`
- [378](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L378) raises `OnPostReportOnBeforeConfirmShowFAJournalLines`, IsHandled
- [380](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L380) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponse`
- [384](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L384) runs [Page 5629 Fixed Asset Journal](https://jonas-paprotka.de/ref/page/5629-fixed-asset-journal/)
- [390](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L390) raises `OnPostReportOnBeforeConfirmShowGenJournalLines`, IsHandled
- [392](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L392) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponse`
- [396](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L396) runs [Page 5628 Fixed Asset G/L Journal](https://jonas-paprotka.de/ref/page/5628-fixed-asset-g-l-journal/)
- [400](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L400) raises `OnAfterOnPostReport`

## OnPreReport

[Line 403](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L403), trigger.

- [407](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L407) calls `ActivateErrorMessageHandling`

## ActivateErrorMessageHandling

[Line 521](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L521), local.

- [526](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L526) raises `OnBeforeActivateErrorMessageHandling`, IsHandled
- [531](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L531) calls [Codeunit 28 Error Message Management](https://jonas-paprotka.de/ref/codeunit/28-error-message-management/) `Activate`

## InsertBonusDepreciationFAJnlLine

[Line 544](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L544), local.

- [549](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L549) calls [Table 5603 FA Setup](https://jonas-paprotka.de/ref/table/5603-fa-setup/) `BonusDepreciationCorrectlySetup`
- [559](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L559) calls [Table 5612 FA Depreciation Book](https://jonas-paprotka.de/ref/table/5612-fa-depreciation-book/) `EligibleForBonusDepreciation`
- [562](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L562) calls `GetBonusDepreciationApplied`
- [568](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L568) calls [Table 5605 FA Journal Setup](https://jonas-paprotka.de/ref/table/5605-fa-journal-setup/) `SetFAJnlTrailCodes`
- [577](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L577) validates [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) `FA No.`
- [581](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L581) validates [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) `Depreciation Book Code`
- [582](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L582) calls `GetBonusDepreciationAmount`
- [583](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L583) validates [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) `Amount`
- [587](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L587) writes [Table 5621 FA Journal Line](https://jonas-paprotka.de/ref/table/5621-fa-journal-line/) Insert(true)

## GetBonusDepreciationApplied

[Line 591](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L591), local.

- [596](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L596) calls [Table 5612 FA Depreciation Book](https://jonas-paprotka.de/ref/table/5612-fa-depreciation-book/) `BonusDepreciationApplied`

## GetBonusDepreciationAmount

[Line 603](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L603), local.

- [610](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L610) calls [Table 5612 FA Depreciation Book](https://jonas-paprotka.de/ref/table/5612-fa-depreciation-book/) `BonusDepreciationAmount`

## InsertBonusDepreciationGenJnlLine

[Line 616](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L616), local.

- [621](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L621) calls [Table 5603 FA Setup](https://jonas-paprotka.de/ref/table/5603-fa-setup/) `BonusDepreciationCorrectlySetup`
- [631](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L631) calls [Table 5612 FA Depreciation Book](https://jonas-paprotka.de/ref/table/5612-fa-depreciation-book/) `EligibleForBonusDepreciation`
- [634](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L634) calls `GetBonusDepreciationApplied`
- [640](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L640) calls [Table 5605 FA Journal Setup](https://jonas-paprotka.de/ref/table/5605-fa-journal-setup/) `SetGenJnlTrailCodes`
- [650](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L650) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Account No.`
- [654](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L654) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Depreciation Book Code`
- [655](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L655) calls `GetBonusDepreciationAmount`
- [656](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L656) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Amount`
- [660](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L660) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Insert(true)
- [663](https://jonas-paprotka.de/ref/report/5692-calculate-depreciation/source/#L663) calls [Codeunit 5601 FA Insert G/L Account](https://jonas-paprotka.de/ref/codeunit/5601-fa-insert-g-l-account/) `GetBalAcc`

## Source

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

JOP-AL, 2026-11-20.
