---
title: "Codeunit 2670 Variable Allocation Mgt., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/2670-variable-allocation-mgt/points/
object: https://jonas-paprotka.de/ref/codeunit/2670-variable-allocation-mgt/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/2670-variable-allocation-mgt/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 2670 Variable Allocation Mgt., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/2670-variable-allocation-mgt/points/

3 procedures and triggers with a step in src/Layers/W1/BaseApp/Finance/AllocationAccount/VariableAllocationMgt.Codeunit.al, in source order, read from the text, not from a run.

## CalculateAmountDistributions

[Line 21](https://jonas-paprotka.de/ref/codeunit/2670-variable-allocation-mgt/source/#L21), internal.

- [32](https://jonas-paprotka.de/ref/codeunit/2670-variable-allocation-mgt/source/#L32) calls `CalculateVariableBalance`
- [33](https://jonas-paprotka.de/ref/codeunit/2670-variable-allocation-mgt/source/#L33) calls `FixBalances`
- [35](https://jonas-paprotka.de/ref/codeunit/2670-variable-allocation-mgt/source/#L35) calls [Codeunit 2675 Allocation Account Mgt.](https://jonas-paprotka.de/ref/codeunit/2675-allocation-account-mgt/) `GetCurrencyRoundingPrecision`

## CalculateVariableBalance

[Line 86](https://jonas-paprotka.de/ref/codeunit/2670-variable-allocation-mgt/source/#L86), internal.

- [101](https://jonas-paprotka.de/ref/codeunit/2670-variable-allocation-mgt/source/#L101) calls `CalculateDateFilterForDistributionAccount`
- [102](https://jonas-paprotka.de/ref/codeunit/2670-variable-allocation-mgt/source/#L102) calls `GetAccountBalance`

## GetAccountBalance

[Line 108](https://jonas-paprotka.de/ref/codeunit/2670-variable-allocation-mgt/source/#L108), internal.

- [114](https://jonas-paprotka.de/ref/codeunit/2670-variable-allocation-mgt/source/#L114) raises `OnGetAccountBalance`

## Source

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

JOP-AL, 2026-11-20.
