code change · fixSales & Receivablesofficial - Microsoftreviewed - checked by Opus

#13885 [Main]- Final sales invoice uses item Gen. Prod. Posting Group on prepayment deduction line

Posting a final sales invoice no longer applies the item's Gen. Prod. Posting Group to the prepayment deduction line. The fix is in Sales-Post (codeunit 80) across all localized layers, with new prepayment tests.

Pull request · merged into main (BC30) on 2026-11-27 by DeepsShukla · 14 files (+296 -48), 12 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Prepayment deduction lines on the final sales invoice no longer take the item’s Gen. Prod. Posting Group
  • Small change in Sales-Post codeunit 80
  • Applied in APAC, BE, CH, ES, FI, FR, GB, IT, NA, NO, RU and W1 layers
  • Regression tests added to ERM Prepayment in W1 and RU
  • Behaviour changes for users or extensions.

AL objects touched

  • Codeunit 80 “Sales-Post”, Base Application: modified
  • src/Layers/BE/BaseApp/Sales/Posting/SalesPost.Codeunit.al: modified, not in the BC30 snapshot
  • src/Layers/FI/BaseApp/Sales/Posting/SalesPost.Codeunit.al: modified, not in the BC30 snapshot
  • src/Layers/NO/BaseApp/Sales/Posting/SalesPost.Codeunit.al: modified, not in the BC30 snapshot

Context

  • Work items: AB#660995
  • Labels: Team: SCM
  • Systems: sales
  • From the description: “Final sales invoice uses item Gen. Prod. Posting Group on prepayment deduction line”

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