---
id: change/bcapps/9478
type: change
title: "#9478 feat(Sustainability): Add Reverse Transaction for Sustainability Ledger Entries"
summary: 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.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit sust. entry reverse mgt.
  - page sustainability ledger entries
  - table sustainability ledger entry
  - permissionset sustainability edit
system: sustainability
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:08:36.501Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 07c3bb33ee95951bc9701961b879f8eb4fe766af
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9478
    title: "microsoft/BCApps#9478: feat(Sustainability): Add Reverse Transaction for Sustainability Ledger Entries"
    date: "2026-08-19"
    commit: 07c3bb33ee95951bc9701961b879f8eb4fe766af
    t: null
    quote: Add the ability to reverse posted Sustainability Ledger Entries, matching the established G/L reversal pattern.
links:
  learn: []
  objects:
    - object/codeunit/6243
    - object/page/6220
    - object/table/6216
    - object/permissionset/6213
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9478
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9478
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-19T09:09:01Z"
author: KseniaOreshkina
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 5
  additions: 675
  deletions: 3
  al: 4
apps:
  - Sustainability
objects_touched:
  - key: codeunit/6243
    page: codeunit/6243
    type: codeunit
    id: 6243
    name: Sust. Entry Reverse Mgt.
    app: Sustainability
    status: added
  - key: page/6220
    page: page/6220
    type: page
    id: 6220
    name: Sustainability Ledger Entries
    app: Sustainability
    status: modified
  - key: table/6216
    page: table/6216
    type: table
    id: 6216
    name: Sustainability Ledger Entry
    app: Sustainability
    status: modified
  - key: permissionset/6213
    page: permissionset/6213
    type: permissionset
    id: 6213
    name: Sustainability Edit
    app: Sustainability
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 640652
systems:
  - sustainability
quote: Add the ability to reverse posted Sustainability Ledger Entries, matching the established G/L reversal pattern.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #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.

[Pull request](https://github.com/microsoft/BCApps/pull/9478) · 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."](../../objects/codeunit/6243.md), Sustainability: added
- [Page 6220 "Sustainability Ledger Entries"](../../objects/page/6220.md), Sustainability: modified
- [Table 6216 "Sustainability Ledger Entry"](../../objects/table/6216.md), Sustainability: modified
- [Permission set 6213 "Sustainability Edit"](../../objects/permissionset/6213.md), 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).
