#10227 Fix regression introduced by Apply-to-Oldest optimization
The Gen. Jnl.-Post Line codeunit was fixed to resolve a regression introduced by the Apply-to-Oldest optimization that affected application logic in general ledger posting.
- 18files
- 11AL files
- 1objects
Pull request · merged into main (BC30) on 2026-08-14 by dcenic · 18 files (+1980 -99), 11 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Fixes a regression in Gen. Jnl.-Post Line caused by the Apply-to-Oldest optimization (issue #9529)
- Fix applied in the W1, NA, APAC, BE, CH, ES, FI, FR, IT, NO and RU layers
- Four new tests guard against the regression, taken from partner PR #9881
- One extra test confirms the optimization still exits early once the summed amount is enough
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 12 “Gen. Jnl.-Post Line”, Base Application: modified
Context
- Work items: AB#646691
- Labels: Team: Finance
- Systems: finance
- From the description: “Fix regression introduced by Apply-to-Oldest optimization.”
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).