code change · fixFinanceofficial - Microsoftreviewed - checked by Opus

#14574 [Main]ERM Purchase Payables.UnreliazedGainLossEntrieAreClearWhenUsingMultiplePostingGroups fails (G/L account not balanced)- #13241

Fixes the failing UnreliazedGainLossEntrieAreClearWhenUsingMultiplePostingGroups test, which hit an unbalanced G/L account when a payment used a different vendor posting group than the invoice. The test setup now maps alternate vendor posting groups in both directions, and Gen. Jnl.-Post Line is also modified across localization layers.

Pull request · merged into main (BC30) on 2026-11-30 by sanjmaurya · 15 files (+1084 -52), 11 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • The test failed with an unbalanced G/L account when the payment and invoice used different vendor posting groups
  • The test setup adds the reverse alternate vendor posting-group mapping, from group 2 to group 1
  • Codeunit 12 Gen. Jnl.-Post Line is modified in the APAC, BE, CH, ES, FI, FR, IT, NA, NO, RU and W1 layers
  • Tests are updated in the CZ, FI, GB and W1 layers

AL objects touched

Context

  • Work items: AB#647653
  • Labels: Team: Finance
  • Systems: finance
  • From the description: “Added the reverse alternate vendor posting-group mapping, from group 2 to group 1.”

No source states these links: they share an object, a model read them, or a person found the same subject.

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