#14780 [Performance] In Vendor - Balance to Date report, avoid rescanning the vendor's full application history
Report 321 'Vendor - Balance to Date' now skips rescanning the vendor's full application history when calculating totals, using marked entries instead to significantly improve performance for vendors with lengthy transaction histories.
- 5files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-12-05 by dcenic · 5 files (+514 -46), 1 AL · performance · tier official · reviewed (checked by Opus)
What changed
- CalcTotalVendorAmount now builds its temporary buffer from already-marked entries instead of filtering the entire detailed vendor ledger
- Second marking loop loads only needed fields and calculates FlowFields in a single read to reduce database round trips
- CheckVendEntryIncluded receives a pre-loaded record instead of issuing separate Get and CalcFields calls
- Closing-entry posting dates are cached per vendor to avoid redundant lookups
- Report output remains unchanged as the new logic produces identical results with correct ledger data
AL objects touched
- Report 321 “Vendor - Balance to Date”, Base Application: modified
Also merged into
- #14815 into
releases/29.xon 2026-12-02
Context
- Work items: AB#661534
- Labels: Ownership: Manual, Team: Finance
- Systems: purchasing
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Accounts payables analytics — possibly related: touches Report 321 “Vendor - Balance to Date”
- Vendor - Balance to Date (Report) — possibly related: touches Report 321 “Vendor - Balance to Date”
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).