---
title: "Report 790 Calculate Inventory"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/report/790-calculate-inventory/
type: report
id: 790
name: "Calculate Inventory"
app: "Base Application"
namespace: Microsoft.Inventory.Counting.Journal
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/report/790-calculate-inventory/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Report 790 Calculate Inventory

Jonas Paprotka, https://jonas-paprotka.de/ref/report/790-calculate-inventory/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Inventory.Counting.Journal |
| Versions | 17-28 |
| Source file | Inventory/Counting/Journal/CalculateInventory.Report.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SetItemJnlLine | (var Record Item Journal Line) | - | public | 17-28 | - | - |
| InsertItemJnlLine | (Code[20], Code[10], Integer, Code[20], Decimal, Decimal) | - | public | 17-28 | - | - |
| InitializeRequest | (Date, Code[20], Boolean, Boolean) | - | public | 17-28 | - | - |
| SetHideValidationDialog | (Boolean) | - | public | 17-28 | - | - |
| InitializePhysInvtCount | (Code[10], Option) | - | public | 17-28 | - | - |
| GetLocation | (Code[10]) | Boolean | public | 17-28 | - | - |
| SetSkipDim | (Boolean) | - | public | 17-28 | - | - |
| AddZeroQtySKU | () | - | public | 20-28 | - | - |
| ValidatePostingDate | () | - | public | 24-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterGetRecordItemLedgEntryOnBeforeUpdateBuffer | (var Record Item, Record Item Ledger Entry, var Boolean) | 17 | - | - |
| Integration event | OnAfterInsertItemJnlLine | (var Record Item Journal Line) | 17-28 | - | - |
| Integration event | OnAfterItemOnPreDataItem | (var Record Item, Boolean, Boolean) | 17-28 | - | - |
| Integration event | OnAfterWhseEntrySetFilters | (var Record Warehouse Entry, var Record Item Journal Line) | 17-28 | - | - |
| Integration event | OnItemLedgerEntryOnAfterPreDataItem | (var Record Item Ledger Entry, var Record Item) | 17-28 | - | - |
| Integration event | OnInsertItemJnlLineOnBeforeInit | (var Record Item Journal Line) | 17-28 | - | - |
| Integration event | OnBeforeFunctionInsertItemJnlLine | (Code[20], Code[10], Integer, Code[20], Decimal, Decimal) | 17-18 | - | - |
| Integration event | OnBeforeInsertItemJnlLine | (var Record Item Journal Line, var Record Inventory Buffer) | 17-28 | - | - |
| Integration event | OnBeforeQuantityOnHandBufferFindAndInsert | (var Record Inventory Buffer, Record Warehouse Entry) | 17-28 | - | - |
| Integration event | OnAfterFunctionInsertItemJnlLine | (Code[20], Code[10], Integer, Code[20], Decimal, Decimal, var Record Item Journal Line) | 17-28 | - | - |
| Integration event | OnPreDataItemOnAfterGetItemJnlTemplateAndBatch | (var Record Item Journal Template, var Record Item Journal Batch) | 17-28 | - | - |
| Integration event | OnRetrieveBufferOnBeforeFind | (var Record Inventory Buffer, Record Item Ledger Entry) | 17-28 | - | - |
| Integration event | OnReserveWarehouseOnAfterWhseEntry2SetFilters | (var Record Item Journal Line, var Record Warehouse Entry, var Record Warehouse Entry, Option) | 17-28 | - | - |
| Integration event | OnAfterGetRecordItemLedgEntryOnBeforeUpdateBuffer | (var Record Item, Record Item Ledger Entry, var Boolean, var Boolean) | 18-28 | - | - |
| Integration event | OnBeforeItemOnAfterGetRecord | (var Record Item) | 18-22 | - | - |
| Integration event | OnCalcPhysInvQtyAndInsertItemJnlLineOnBeforeCheckIfInsertNeeded | (Record Inventory Buffer) | 18-28 | - | - |
| Integration event | OnCalcWhseQtyOnAfterLotRequiredWhseEntryClearFilters | (var Record Warehouse Entry) | 18-28 | - | - |
| Integration event | OnCalcWhseQtyOnAfterLotRequiredWhseEntrySetFilters | (var Record Warehouse Entry) | 18-28 | - | - |
| Integration event | OnUpdateBufferOnBeforeInsert | (var Record Inventory Buffer) | 18 | - | - |
| Integration event | OnUpdateBufferOnBeforeModify | (var Record Inventory Buffer) | 18 | - | - |
| Integration event | OnInsertItemJnlLineOnAfterCalcShouldInsertItemJnlLine | (Code[20], Code[10], Integer, Code[20], Decimal, Decimal, Boolean, var Boolean) | 19-20 | - | - |
| Integration event | OnBeforeFunctionInsertItemJnlLine | (Code[20], Code[10], Integer, Code[20], Decimal, Decimal, var Record Item Journal Line, var Boolean) | 19-20 | - | - |
| Integration event | OnUpdateBufferOnBeforeInsert | (var Record Inventory Buffer, Boolean) | 19-28 | - | - |
| Integration event | OnUpdateBufferOnBeforeModify | (var Record Inventory Buffer, Boolean) | 19-28 | - | - |
| Integration event | OnItemLedgerEntryOnAfterGetRecordOnBeforeUpdateBuffer | (var Record Warehouse Entry) | 20-28 | - | - |
| Integration event | OnInsertItemJnlLineOnAfterValidateLocationCode | (Code[20], Code[10], Integer, Code[20], Decimal, Decimal, var Record Item Journal Line) | 20-28 | - | - |
| Integration event | OnAddZeroQtySKUOnBeforeInsertQuantityOnHandBuffer | (var Record Inventory Buffer, Record Stockkeeping Unit, Record Item) | 20-28 | - | - |
| Integration event | OnItemLedgerEntryOnPreDataItemOnBeforeInsertQuantityOnHandBuffer | (var Record Inventory Buffer, Record Item) | 20-28 | - | - |
| Integration event | OnItemLedgerEntryOnPreDataItemOnBeforeClearQuantityOnHandBuffer | (var Record Item Ledger Entry, Record Item) | 20-28 | - | - |
| Integration event | OnCalcPhysInvQtyAndInsertItemJnlLineOnBeforeFindset | (var Record Inventory Buffer) | 20-28 | - | - |
| Integration event | OnCalcWhseQtyOnAfterWhseEntrySetFilters | (var Record Warehouse Entry) | 20-28 | - | - |
| Integration event | OnInsertItemJnlLineOnAfterUpdateDimensionSetID | (var Record Item Journal Line) | 20-28 | - | - |
| Integration event | OnBeforeOnPreReport | (var Record Item Journal Line, var Date) | 20-28 | - | - |
| Integration event | OnAddZeroQtyOnAfterFilterSKU | (var Record Item, var Record Stockkeeping Unit) | 20-28 | - | - |
| Integration event | OnAddZeroQtyOnAfterCalcShouldAddZeroQty | (var Record Item, Boolean, var Boolean) | 20-28 | - | - |
| Integration event | OnAddZeroQtySKUOnBeforeInsertZeroQtySKU | (Record Item, Record Stockkeeping Unit, var Record Inventory Buffer, var Boolean) | 20 | - | - |
| Integration event | OnInsertItemJnlLineOnBeforeValidateItemNo | (var Record Item Journal Line) | 20-28 | - | - |
| Integration event | OnCalcWhseQtyOnAfterGetWhseItemTrkgSetup | (Code[10], var Record Item Tracking Setup) | 20-28 | - | - |
| Integration event | OnInsertItemJnlLineOnAfterCalcShouldInsertItemJnlLine | (Code[20], Code[10], Integer, Code[20], Decimal, Decimal, Boolean, var Boolean, Record Location) | 21-23 | - | - |
| Integration event | OnBeforeFunctionInsertItemJnlLine | (Code[20], Code[10], Integer, Code[20], Decimal, Decimal, var Record Item Journal Line, var Boolean, Record Location) | 21-28 | - | - |
| Integration event | OnAddZeroQtySKUOnBeforeInsertZeroQtySKU | (Record Item, var Record Stockkeeping Unit, var Record Inventory Buffer, var Boolean) | 21 | - | - |
| Integration event | OnBeforeRetrieveBuffer | (var Record Inventory Buffer, Record Item Ledger Entry, Code[20], Integer, var Boolean, var Boolean) | 22-28 | - | - |
| Integration event | OnAddZeroQtySKUOnBeforeInsertZeroQtySKU | (var Record Item, var Record Stockkeeping Unit, var Record Inventory Buffer, var Boolean) | 22-28 | - | - |
| Integration event | OnBeforeItemOnAfterGetRecord | (var Record Item, var Boolean) | 23-28 | - | - |
| Integration event | OnInsertItemJnlLineOnAfterCalcShouldInsertItemJnlLine | (Code[20], Code[10], Integer, Code[20], Decimal, Decimal, Boolean, var Boolean, Record Location, var Integer) | 24-28 | - | - |
| Integration event | OnBeforeItemBinLocationIsCalculated | (Record Item Ledger Entry, var Boolean, var Boolean) | 24-25 | - | - |
| Integration event | OnInsertQuantityOnHandBufferOnBeforeInsert | (var Record Inventory Buffer) | 25-28 | - | - |
| Integration event | OnBeforeItemBinLocationIsCalculated | (Record Item Ledger Entry, var Boolean, var Boolean, var Record Warehouse Entry) | 26-28 | - | - |
| Integration event | OnWhseEntryLoopOnBeforeFindlast | (var Record Warehouse Entry, var Boolean) | 26-28 | - | - |
| Integration event | OnAfterGetRecordItemLedgEntryOnBeforeWhseEntryFind | (var Record Warehouse Entry, Record Item Ledger Entry) | 26-28 | - | - |
| Integration event | OnItemBinLocationIsCalculatedOnBeforeFind | (var Record Inventory Buffer, Record Item Ledger Entry) | 26-28 | - | - |
| Integration event | OnWarehouseEntryOnAfterGetRecordOnBeforeItemLedgerEntryIsEmptyCheck | (var Record Item Ledger Entry, var Boolean) | 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.
