#8914 [Master]- Changing Sales Order Line Description on a Sales Order unexpectedly changes the invoice total amounts.Changes
Fixed an issue where editing a sales order line's description would unexpectedly change invoice totals by ensuring calculations only run when the item number changes.
- 8files
- 7AL files
- 1objects
Pull request · merged into main (BC30) on 2026-07-14 by DeepsShukla (community contribution) · 8 files (+67 -21), 7 AL · fix · tier official · reviewed (checked by Opus)
What changed
- The Description field validation was recalculating totals on every edit
- Totals are now recalculated only when Rec.“No.” differs from xRec.“No.”
- Stops the line amount being added to the invoice totals a second time
- Adds a test in the Document Totals Pages test codeunit
- The Sales Order Subform page is updated in the W1, CH, ES, IT, NA, NO and RU layers
- Behaviour changes for users or extensions.
AL objects touched
- Page 46 “Sales Order Subform”, Base Application: modified
src/Layers/ES/BaseApp/Sales/Document/SalesOrderSubform.Page.al: modified, not in the BC30 snapshotsrc/Layers/IT/BaseApp/Sales/Document/SalesOrderSubform.Page.al: modified, not in the BC30 snapshotsrc/Layers/NA/BaseApp/Sales/Document/SalesOrderSubform.Page.al: modified, not in the BC30 snapshotsrc/Layers/NO/BaseApp/Sales/Document/SalesOrderSubform.Page.al: modified, not in the BC30 snapshot
Context
- Work items: AB#640927
- Labels: ADO: Sync, From Fork, Team: SCM
- Systems: sales
- From the description: “Changing Sales Order Line Description on a Sales Order unexpectedly changes the invoice total amounts.”
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).