#10183 Bug 646432: [master] [Sustainability] Line does not indicate/enforce which Calculation Foundation is in use; all formula input fields are editable
Sustainability Journal and Purchase Order lines now enforce field editability based on the selected account category's Calculation Foundation and Emission Scope, preventing users from editing formula inputs that are not supported by the chosen calculation method.
- 5files
- 3AL files
- 3objects
Pull request · merged into main (BC30) on 2026-08-21 by AleksanderGladkov · 5 files (+631 -5), 3 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Formula input fields are now editable only when used by the selected Emission Scope and Calculation Foundation
- Manual Input field changes, account selection changes, and unsupported combinations trigger automatic state refresh
- Shared editability rules applied consistently across both Sustainability Journal and Purchase Order subform pages
- Comprehensive test coverage added for Journal and Purchase Order combinations, fallback setup, and account changes
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 6218 “Sustainability Calc. Mgt.”, Sustainability: modified
- Page 6219 “Sustainability Journal”, Sustainability: modified
- Page extension 6211 “Sust. Purch. Order Subform”, Sustainability: modified
Context
- Work items: AB#646432
- Labels: AL: Apps (W1), Team: Finance
- Systems: sustainability
- From the description: “Only formula inputs used by the selected scope and calculation foundation are editable.”
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).