#14783 [Performance] In Customer - Balance to Date report, avoid unnecessary checks of every closed entry in the customer's history
The Customer - Balance to Date report now skips unnecessary checks on closed ledger entries by only examining those with application details after the ending date, significantly reducing run time for customers with large transaction histories.
- 5files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-12-03 by dcenic · 5 files (+646 -31), 1 AL · performance · tier official · reviewed (checked by Opus)
What changed
- Open entries up to the ending date are marked directly without individual checks
- Closed entries are only checked if they have application details after the ending date
- Single-pass entry reads with SetLoadFields and SetAutoCalcFields eliminate redundant Get and CalcFields calls
- Closing-entry posting dates are cached per customer to skip unnecessary lookups
- Totals buffer is built from marked entries to ensure consistency
AL objects touched
- Report 121 “Customer - Balance to Date”, Base Application: modified
Also merged into
- #14816 into
releases/29.xon 2026-12-02
Context
- Work items: AB#661535
- Labels: Ownership: Manual, Team: Finance
- Systems: sales
- From the description: “Report 121 Customer - Balance to Date can take tens of minutes for customers with a long transaction history.”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Customer - Balance to Date (Report) — possibly related: Performance optimization in Customer - Balance to Date report specifically documents this report. (model-linked)
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).