code change · fixFinanceofficial - Microsoftreviewed - checked by Opus

#11998 [main] It should not be possible to post invoices with a non-existing Posting Setup combination because it creates trouble with Adjust for Payment Discount.

The system now validates that a General Posting Setup combination exists before posting journal invoices, preventing issues that arise later when processing payment discounts.

Pull request · merged into main (BC30) on 2026-10-19 by Shikhverma · 13 files (+515 -22), 11 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Gen. Jnl.-Check Line now checks that a General Posting Setup row exists for the business/product posting group pair
  • Combinations set up with a blank business posting group are still allowed; missing combinations are rejected
  • G/L journal invoices can no longer post with a product posting group that has no matching General Posting Setup
  • Prevents the failure that used to show up later when posting a payment discount
  • The check is added in W1 and several country layers, with tests in W1 and CZ
  • Behaviour changes for users or extensions.

AL objects touched

  • Codeunit 11 “Gen. Jnl.-Check Line”, Base Application: modified
  • src/Layers/APAC/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al: modified, not in the BC30 snapshot
  • src/Layers/CH/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al: modified, not in the BC30 snapshot
  • src/Layers/FI/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al: modified, not in the BC30 snapshot
  • src/Layers/FR/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al: modified, not in the BC30 snapshot
  • src/Layers/NL/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al: modified, not in the BC30 snapshot

Also merged into

  • #12431 into releases/29.x on 2026-10-27

Context

  • Work items: AB#651675
  • Labels: Team: Finance
  • Systems: finance
  • From the description: “Validate that the General Posting Setup row exists for the pair before posting.”

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