---
title: "Codeunit 5830 Calc. Availability Overview"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5830-calc-availability-overview/
type: codeunit
id: 5830
name: "Calc. Availability Overview"
app: "Base Application"
namespace: Microsoft.Inventory.Availability
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5830-calc-availability-overview/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 5830 Calc. Availability Overview

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5830-calc-availability-overview/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Inventory.Availability |
| Versions | 17-28 |
| Source file | Inventory/Availability/CalcAvailabilityOverview.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CalculateItem | (var Record Availability Calc. Overview) | - | public | 17-28 | - | - |
| CalculateDate | (var Record Availability Calc. Overview) | - | public | 17-28 | - | - |
| EntriesExist | (var Record Availability Calc. Overview) | Boolean | public | 17-28 | - | - |
| SetParam | (Option, Code[20]) | - | public | 17-27 | Pending 25.0 | Replaced by SetParameters() with enum |
| InsertEntry | (var Record Availability Calc. Overview, Integer, Date, Code[10], Code[10], Decimal, Decimal, Integer, Integer, Code[20], Text[100], Option) | - | public | 21-27 | Pending 25.0 | Replaced by InsertAvailabilityEntry() |
| InsertAvailabilityEntry | (var Record Availability Calc. Overview, Integer, Date, Code[10], Code[10]) | - | public | 25-28 | - | - |
| InsertAvailabilityEntry | (var Record Availability Calc. Overview, Integer, Date, Code[10], Code[10], Decimal, Decimal, Integer, Integer, Code[20], Text[100], Enum Demand Order Source Type) | - | public | 25-28 | - | - |
| SetParameters | (Enum Demand Order Source Type, Code[20]) | - | public | 25-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterCalcRunningTotals | (var Record Item, var Decimal, var Decimal, var Decimal, var Decimal) | 17-28 | - | - |
| Integration event | OnInsertEntryOnBeforeInsert | (var Record Availability Calc. Overview) | 17-28 | - | - |
| Integration event | OnUpdateRunningTotalsOnBeforeModify | (var Record Availability Calc. Overview) | 17-28 | - | - |
| Integration event | OnGetDemandDates | (var Record Availability Calc. Overview, var Record Item) | 25-28 | - | - |
| Integration event | OnGetDemandEntries | (var Record Availability Calc. Overview, var Record Item) | 25-28 | - | - |
| Integration event | OnGetSupplyDates | (var Record Availability Calc. Overview, var Record Item) | 25-28 | - | - |
| Integration event | OnGetSupplyEntries | (var Record Availability Calc. Overview, var Record Item) | 25-28 | - | - |
| Integration event | OnCheckItemInRange | (var Record Item, Enum Demand Order Source Type, Code[20], var Boolean) | 25-28 | - | - |
| Integration event | OnDemandExist | (var Record Item, var Boolean) | 25-28 | - | - |
| Integration event | OnSupplyExist | (var Record Item, var Boolean) | 25-28 | - | - |
| Integration event | OnAfterCalcDemandRunningTotal | (var Record Item, var Decimal) | 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.
