code change · fixFinanceofficial - Microsoftreviewed - checked by Opus

#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.

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

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).