#13642 Preserve work descriptions on posted sales prepayment documents
Posting sales prepayment invoices and credit memos now loads the order's Work Description before copying the header, so the posted prepayment documents keep it. Previously the text could be lost when Calc. Inv. Discount caused the header to be reloaded.
- 13files
- 9AL files
- 1objects
Pull request · merged into main (BC30) on 2026-11-05 by JesperSchulz · 13 files (+486 -0), 9 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Work Description BLOB is loaded right before TransferFields when creating prepayment invoice and credit memo headers
- Fixes missing work description after the sales header is reloaded during invoice discount redistribution
- Four regression tests cover invoices and credit memos with automatic invoice discount calculation on and off
- Fix propagated to nine posting codeunits and tests to four test codeunits across W1 and localized layers
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 442 “Sales-Post Prepayments”, Base Application: modified
src/Layers/BE/BaseApp/Sales/Posting/SalesPostPrepayments.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/CH/BaseApp/Sales/Posting/SalesPostPrepayments.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/ES/BaseApp/Sales/Posting/SalesPostPrepayments.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/NL/BaseApp/Sales/Posting/SalesPostPrepayments.Codeunit.al: modified, not in the BC30 snapshot
Context
- Fixes: #8774 [Bug]: Work Description is not transferred from Sales Order to Prepayment Invoice in BC28 when “Calc. Inv. Discount” setting is toggled ON in Sales & Receivables Setup (use to work in BC27) (closed)
- Work items: AB#657998
- Labels: ADO: Sync, Team: SCM
- Systems: sales
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Edit Posted Documents — possibly related: Covers editing posted documents, relevant to preserving data on posted prepayment documents. (model-linked)
- Set up and invoicing sales prepayments — possibly related: Documents sales prepayment setup and invoicing process where work descriptions matter. (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).