---
id: change/bcapps/10096
type: change
title: "#10096 Fix Close Income Statement grouping when no dimensions are selected"
summary: Fixed the Close Income Statement report to properly group G/L entries by account, business unit, and source currency when no dimensions are selected, and ensured closing lines retain source currency codes even when amounts net to zero.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - report close income statement
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:08:31.700Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: a1d18ab344b9f6adc06f28b809deb3eb2769183c
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10096
    title: "microsoft/BCApps#10096: Fix Close Income Statement grouping when no dimensions are selected"
    date: "2026-08-17"
    commit: a1d18ab344b9f6adc06f28b809deb3eb2769183c
    t: null
    quote: entries that share those values collapse into one closing line even when no dimensions are selected
links:
  learn: []
  objects:
    - object/report/94
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10096
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10096
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-17T14:10:46Z"
author: ventselartur
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 8
  additions: 1179
  deletions: 36
  al: 3
apps:
  - Base Application
objects_touched:
  - key: report/94
    page: report/94
    type: report
    id: 94
    name: Close Income Statement
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/IT/BaseApp/Finance/GeneralLedger/Setup/CloseIncomeStatement.Report.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 646076
  - 646077
systems:
  - finance
quote: entries that share those values collapse into one closing line even when no dimensions are selected
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #10096 Fix Close Income Statement grouping when no dimensions are selected

> Fixed the Close Income Statement report to properly group G/L entries by account, business unit, and source currency when no dimensions are selected, and ensured closing lines retain source currency codes even when amounts net to zero.

[Pull request](https://github.com/microsoft/BCApps/pull/10096) · merged into `main` (BC30) on 2026-08-17 by ventselartur · 8 files (+1179 -36), 3 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Entry grouping now works correctly regardless of dimension selection by keying the buffer on business unit, dimension combination, and source currency
- Added dimension buffer ID mapping to handle cases where dimension combinations are reused across source currencies
- Source currency codes are preserved on closing lines even when the source currency amount nets to zero
- Entry grouping state is properly cleared between account batches using the new ResetEntryNoGrouping method
- Added comprehensive tests covering both scenarios with and without Additional Reporting Currency
- Behaviour changes for users or extensions.

## AL objects touched

- [Report 94 "Close Income Statement"](../../objects/report/94.md), Base Application: modified
- `src/Layers/IT/BaseApp/Finance/GeneralLedger/Setup/CloseIncomeStatement.Report.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#646076, AB#646077
- Labels: Team: Finance
- Systems: finance
- From the description: "entries that share those values collapse into one closing line even when no dimensions are selected"

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