#13630 [NL] Fix CBG applies-to ID length handling
In the NL CBG Statement Line, New Applies-to ID now returns Code[50] and payment tolerance handling stores the ID as Code[50], matching the existing field length. Longer valid applies-to IDs no longer fail during generation, increment or payment tolerance processing.
- 4files
- 2AL files
- 2objects
Pull request · merged into main (BC30) on 2026-11-05 by JesperSchulz · 4 files (+222 -6), 2 AL · fix · tier official · reviewed (checked by Opus)
What changed
- New Applies-to ID return type and the PmtTolCBGJnl local variable changed from Code[20] to Code[50]
- First bank ID can keep the full 20-character statement document number plus its numeric suffix
- Existing increment, suffix, cash-journal selection and payment tolerance logic are unchanged
- Five tests added covering 10, 20, 21 and 50 character IDs, numeric carry, persistence and payment tolerance
- Existing 10,000-line counter test updated to use a Code[50] variable
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 426 “Payment Tolerance Management”, Base Application (NL layer): modified
- Table 11401 “CBG Statement Line”, Base Application (NL layer): modified
Context
- Fixes: #9732 CBG Statement Line”.“Applies-to ID” field is Code[50] mismatch as variables used in the supporting functions are only Code[20]. (closed)
- Work items: AB#657901
- Labels: ADO: Sync, Team: Finance
- Systems: finance
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Update 22.3 for Microsoft Dynamics 365 Business Central 2023 Release Wave 1 — possibly related: touches Table 11401 “CBG Statement Line (NL)”
- Payment tolerance and payment discount tolerance — possibly related: Documents payment tolerance settings for invoices closing with minor payment differences. (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).