---
id: change/bcapps/13813
type: change
title: "#13813 [main] feature 624914 - Refactor depreciation calculation logic to use GetDepreciationCalculationBase for improved clarity and maintainability"
summary: Czech Fixed Asset Localization adds an optional checkbox to deduct ending book value from the depreciation base, supporting residual-value treatment under new accounting requirements while preserving existing behavior by default.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit calc. normal depr. handler czf
  - pageextension fixed asset setup czf
  - tableextension fa setup czf
  - codeunit calculate normal depreciation
system: fixed-assets
review:
  state: reviewed
  by: opus
  at: "2026-11-27T01:03:28.356Z"
  flags: []
generated:
  at: "2026-11-30T13:33:07.232Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 518fcb43c51e03bc9243eea7d6c44b4c5a4ddb50
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13813
    title: "microsoft/BCApps#13813: [main] feature 624914 - Refactor depreciation calculation logic to use GetDepreciationCalculationBase for improved clarity and maintainability"
    date: "2026-11-23"
    commit: 518fcb43c51e03bc9243eea7d6c44b4c5a4ddb50
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/31247-cz
    - object/pageextension/31249-cz
    - object/tableextension/31249-cz
    - object/codeunit/5611
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Czech/how-to-use-tax-depreciation-for-fixed-assets
      title: Czech local functionality - Tax depreciation for fixed assets | Microsoft Docs
      label: possibly related
      why: Documents Czech tax depreciation for fixed assets using depreciation calculation methods and groups.
      by: model
number: 13813
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13813
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-23T16:28:00Z"
author: DavidHolusa
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 11
  additions: 1283
  deletions: 252
  al: 8
apps:
  - Base Application
  - FixedAssetLocalization
objects_touched:
  - key: codeunit/31247
    page: codeunit/31247-cz
    type: codeunit
    id: 31247
    name: Calc. Normal Depr. Handler CZF
    app: FixedAssetLocalization
    status: modified
  - key: pageextension/31249
    page: pageextension/31249-cz
    type: pageextension
    id: 31249
    name: Fixed Asset Setup CZF
    app: FixedAssetLocalization
    status: modified
  - key: tableextension/31249
    page: tableextension/31249-cz
    type: tableextension
    id: 31249
    name: FA Setup CZF
    app: FixedAssetLocalization
    status: modified
  - key: codeunit/5611
    page: codeunit/5611
    type: codeunit
    id: 5611
    name: Calculate Normal Depreciation
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/FR/BaseApp/FixedAssets/Depreciation/CalculateNormalDepreciation.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/GB/BaseApp/FixedAssets/Depreciation/CalculateNormalDepreciation.Codeunit.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 624914
systems:
  - fixed-assets
quote: null
joined_against:
  major: "30"
  commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
---

# #13813 [main] feature 624914 - Refactor depreciation calculation logic to use GetDepreciationCalculationBase for improved clarity and maintainability

> Czech Fixed Asset Localization adds an optional checkbox to deduct ending book value from the depreciation base, supporting residual-value treatment under new accounting requirements while preserving existing behavior by default.

[Pull request](https://github.com/microsoft/BCApps/pull/13813) · merged into `main` (BC30) on 2026-11-23 by DavidHolusa · 11 files (+1283 -252), 8 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Adds an 'Include Ending Book Value in Depreciation Base' checkbox to Czech Fixed Asset Setup, cleared by default
- When enabled, the ending book value is deducted from the depreciation base, but it still acts as the final floor
- Respects individual and default ending book values and Ignore Def. Ending Book Value; assets in a tax depreciation group ignore ending book value entirely
- Calculate Normal Depreciation in the Base Application gets a new integration event and a shared calculation-base helper
- Affects only later calculations; asks for confirmation when the setting is changed interactively
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 31247 "Calc. Normal Depr. Handler CZF"](../../objects/codeunit/31247-cz.md), FixedAssetLocalization (CZ layer): modified
- [Page extension 31249 "Fixed Asset Setup CZF"](../../objects/pageextension/31249-cz.md), FixedAssetLocalization (CZ layer): modified
- [Table extension 31249 "FA Setup CZF"](../../objects/tableextension/31249-cz.md), FixedAssetLocalization (CZ layer): modified
- [Codeunit 5611 "Calculate Normal Depreciation"](../../objects/codeunit/5611.md), Base Application: modified
- `src/Layers/FR/BaseApp/FixedAssets/Depreciation/CalculateNormalDepreciation.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/GB/BaseApp/FixedAssets/Depreciation/CalculateNormalDepreciation.Codeunit.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#624914
- Labels: Team: Finance
- Systems: fixed-assets

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Czech local functionality - Tax depreciation for fixed assets | Microsoft Docs](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Czech/how-to-use-tax-depreciation-for-fixed-assets) — possibly related: Documents Czech tax depreciation for fixed assets using depreciation calculation methods and groups. (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
