#9585 [master] Description Field value gets automatically reverted the original value after changing it.
Fixed a bug where the Description field on sales lines would revert to its original item value after editing, when Calc. Inv. Discount was enabled and Quantity had been validated.
- 4files
- 3AL files
- 1objects
Pull request · merged into main (BC30) on 2026-07-20 by neeleshsinghal · 4 files (+44 -3), 3 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Editing Description after validating Quantity reverted it when Calc. Inv. Discount was enabled
- In CalculateSalesSubPageTotals the NeedRefreshSalesLine reset sat after the TotalsUpToDate early exit, so the flag stayed true
- The reset now runs before the early exit, so RefreshSalesLine no longer reloads the line and drops the edit
- Applied to the W1, BE and NA Document Totals codeunits
- Test added in the Document Totals pages test codeunit
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 57 “Document Totals”, Base Application: modified
Context
- Work items: AB#638838
- Labels: Team: SCM
- Systems: platform
- From the description: “Description Field value gets automatically reverted the original value after changing it.”
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).