---
id: change/bcapps/10220
type: change
title: "#10220 [main] Calculate Inventory - Add check to skip report processing if Warehouse Entry table is empty"
summary: The Calculate Inventory report now skips its per-iteration Warehouse Entry processing when the Warehouse Entry table is completely empty. This avoids needless work in databases that have no warehouse entries.
tier: official
language: en
tags:
  - performance
  - main
  - bc30
  - report calculate inventory
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:09:06.134Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: b089f9536fface70b82303c6e1ba365e47d1ec14
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10220
    title: "microsoft/BCApps#10220: [main] Calculate Inventory - Add check to skip report processing if Warehouse Entry table is empty"
    date: "2026-08-14"
    commit: b089f9536fface70b82303c6e1ba365e47d1ec14
    t: null
    quote: Stop processing "Warehouse Entry" in each iteration when it is completely empty
links:
  learn: []
  objects:
    - object/report/790
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10220
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10220
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-14T08:58:29Z"
author: JakovljevicDusan
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: performance
behavior_change: false
breaking: false
files:
  count: 2
  additions: 14
  deletions: 0
  al: 2
apps:
  - Base Application
objects_touched:
  - key: report/790
    page: report/790
    type: report
    id: 790
    name: Calculate Inventory
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/RU/BaseApp/Inventory/Counting/Journal/CalculateInventory.Report.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 646647
systems:
  - inventory
quote: Stop processing "Warehouse Entry" in each iteration when it is completely empty
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #10220 [main] Calculate Inventory - Add check to skip report processing if Warehouse Entry table is empty

> The Calculate Inventory report now skips its per-iteration Warehouse Entry processing when the Warehouse Entry table is completely empty. This avoids needless work in databases that have no warehouse entries.

[Pull request](https://github.com/microsoft/BCApps/pull/10220) · merged into `main` (BC30) on 2026-08-14 by JakovljevicDusan · 2 files (+14 -0), 2 AL · performance · tier official · reviewed (checked by Opus)

## What changed

- Added a check for an empty Warehouse Entry table in the Calculate Inventory report
- When the table is empty, Warehouse Entry processing is skipped on each iteration
- Applied to both the W1 and RU Base Application layers

## AL objects touched

- [Report 790 "Calculate Inventory"](../../objects/report/790.md), Base Application: modified
- `src/Layers/RU/BaseApp/Inventory/Counting/Journal/CalculateInventory.Report.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#646647
- Labels: Team: SCM
- Systems: inventory
- From the description: "Stop processing "Warehouse Entry" in each iteration when it is completely empty"

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).
