#9306 [Main] Unbalanced G/L Entries if you apply a Payment and a Posted Purchase Invoice having both different Posting Groups and using the "Applies-to Document No." on the line instead of using Apply Entries in the Spanish version.Initial commit
Fixed unbalanced G/L entries when applying a payment to a purchase invoice with different posting groups using inline application in the Spanish version.
- 2files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-07-15 by sanjmaurya · 2 files (+99 -2), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Application entries now correctly identify whether they belong to the applied document or the payment
- Invoices post to their own posting-group payables account instead of the payment’s account
- Special handling in PostDtldVendLedgEntry and PostDtldVendLedgEntryUnapply ensures symmetry between apply and unapply operations
- Issue only occurred with inline Applies-to Document No., not with Apply Entries
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 12 “Gen. Jnl.-Post Line”, Base Application (ES layer): modified
Context
- Work items: AB#640410
- Labels: Team: Finance
- Systems: finance
- From the description: “Unbalanced G/L Entries if you apply a Payment and a Posted Purchase Invoice having both different Posting Groups”
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).