#9958 [Main] -Detail Trial Balance - Running Balance Incorrect When "Include Closing Entries" Is Disabled
Fixed the Detail Trial Balance report so that excluded closing entries no longer incorrectly accumulate into the running balance column, ensuring displayed balances reconcile with visible entries.
- 7files
- 2AL files
- 1objects
Pull request · merged into main (BC30) on 2026-08-07 by DhavalMore88 (community contribution) · 7 files (+405 -22), 2 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Closing entries that are skipped from printing were still contributing to the running balance calculation
- Reordered the trigger to check and skip closing entries before accumulating amounts into GLBalance
- Running balance now accurately reflects only the entries actually displayed on the report
- Matches existing pattern used for reversed entries and corrections-only filters
- Added test cases across multiple localization layers to verify the fix
- Behaviour changes for users or extensions.
AL objects touched
- Report 4 “Detail Trial Balance”, Base Application: modified
src/Layers/BE/BaseApp/Finance/GeneralLedger/Reports/DetailTrialBalance.Report.al: modified, not in the BC30 snapshot
Context
- Work items: AB#645090
- Labels: ADO: Sync, From Fork, Team: Finance
- Systems: finance
- From the description: “Reordered the trigger to compute ClosingEntry and perform CurrReport.Skip() before the GLBalance := GLBalance + Amount line”
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).