#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.
- 14files
- 12AL files
- 1objects
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 snapshotsrc/Layers/FI/BaseApp/Sales/Posting/SalesPost.Codeunit.al: modified, not in the BC30 snapshotsrc/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”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Design details - Item tracking posting structure — possibly related: touches Codeunit 80 “Sales-Post”
- Snapshot debugging — possibly related: touches Codeunit 80 “Sales-Post”
- Set up and invoicing sales prepayments — possibly related: Documents setting up and invoicing sales prepayments, relevant to prepayment deduction line Gen. Prod. Posting Group bug. (model-linked)
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).