---
title: "Codeunit 5605 Calculate Disposal"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5605-calculate-disposal/
type: codeunit
id: 5605
name: "Calculate Disposal"
app: "Base Application"
namespace: Microsoft.FixedAssets.FixedAsset
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5605-calculate-disposal/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 5605 Calculate Disposal

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5605-calculate-disposal/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.FixedAssets.FixedAsset |
| Versions | 17-28 |
| Source file | FixedAssets/FixedAsset/CalculateDisposal.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CalcGainLoss | (Code[20], Code[10], var Decimal) | - | public | 17-28 | - | - |
| CalcSecondGainLoss | (Code[20], Code[10], Decimal, var Decimal) | - | public | 17-28 | - | - |
| CalcReverseAmounts | (Code[20], Code[10], var Decimal) | - | public | 17-28 | - | - |
| GetDisposalType | (Code[20], Code[10], Integer, var Option, var Option, var Integer, var Integer) | - | public | 17-28 | - | - |
| GetErrorDisposal | (Code[20], Code[10], Boolean, Integer, var Decimal, var Integer) | - | public | 17-28 | - | - |
| SetFAPostingType | (Integer) | Integer | public | 17-28 | - | - |
| SetFAPostingCategory | (Integer) | Integer | public | 17-28 | Pending 26.0 | Replaced by procedure SetFALedgerPostingCategory() |
| SetReverseType | (Integer) | Integer | public | 17-28 | - | - |
| SetFALedgerPostingCategory | (Integer) | Enum FA Ledger Posting Category | public | 26-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnCalcGainLossOnAfterSetEntryAmounts | (Code[20], Code[10], var Decimal) | 17-28 | - | - |
| Integration event | OnAfterSetEntryAmountsOnBeforeGainLoss | (Code[20], Record FA Depreciation Book, Code[10], var Decimal, var Decimal, var Boolean) | 18-28 | - | - |
| Integration event | OnAfterGetDisposalMethod | (var Option) | 20-28 | - | - |
| Integration event | OnBeforeCalcGainLoss | (Code[20], Code[10], var Decimal) | 20-28 | - | - |
| Integration event | OnAfterSetFAPostingType | (Integer, var Record FA Ledger Entry) | 22-28 | - | - |
| Integration event | OnAfterSetFAPostingCategory | (Integer, var Record FA Ledger Entry) | 22-28 | - | - |
| Integration event | OnGetDisposalTypeSetOnAfterSetFilterFALedgEntry | (var Record FA Ledger Entry) | 22-28 | - | - |
| Integration event | OnGetErrorDisposalOnAfterSetFilterFALedgEntry | (var Record FA Ledger Entry) | 22-28 | - | - |
| Integration event | OnCalcSecondGainLossAfterCalcFieldGainLoss | (var Record FA Depreciation Book) | 25-28 | - | - |
| Integration event | OnCalcReverseAmountsBeforeSetEntryAmounts | (Code[20], Code[10], var Decimal, Decimal, var Boolean) | 25-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
