#9478 feat(Sustainability): Add Reverse Transaction for Sustainability Ledger Entries
Users can now reverse posted Sustainability Ledger Entries manually from the page or automatically when their originating G/L transaction is reversed, with all emission fields negated and the reversal posted on the original entry's date.
- 5files
- 4AL files
- 4objects
Pull request · merged into main (BC30) on 2026-08-19 by KseniaOreshkina · 5 files (+675 -3), 4 AL · feature · tier official · reviewed (checked by Opus)
What changed
- Manual reversal action added to Sustainability Ledger Entries page with confirmation
- Automatic reversal triggered when a G/L transaction that produced sustainability entries is reversed
- New fields track reversal status: Reversed, Reversed by Entry No., Reversed Entry No.
- All emission fields (CO2, CH4, N2O, CO2e, Carbon Fee, Water, Waste, Energy) are negated in the reversal entry
- Reversal entry posted on original entry’s date to ensure emissions net to zero within same period
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 6243 “Sust. Entry Reverse Mgt.”, Sustainability: added
- Page 6220 “Sustainability Ledger Entries”, Sustainability: modified
- Table 6216 “Sustainability Ledger Entry”, Sustainability: modified
- Permission set 6213 “Sustainability Edit”, Sustainability: modified
Context
- Work items: AB#640652
- Labels: AL: Apps (W1), Team: Finance
- Systems: sustainability
- From the description: “Add the ability to reverse posted Sustainability Ledger Entries, matching the established G/L reversal pattern.”
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).