---
id: change/bcapps/10613
type: change
title: "#10613 [Master] - Slice 640775: [Sustainability] Reverse Sustainability part when reverse in GL Entries"
summary: Reversing a G/L transaction now also reverses the sustainability ledger entries linked to it by transaction number, skipping entries already reversed. The reversing FA ledger entry gets a negated Total CO2e, so the fixed asset's Acquisition Total CO2e nets to zero.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit sust. fa journal subscriber
  - codeunit sust. gen. journal subscriber
  - codeunit sust. entry reverse mgt.
  - codeunit sust. gl reverse subscriber
  - table sustainability ledger entry
  - codeunit sustainability post mgt
system: sustainability
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:07:07.626Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: f504539e29fd9513b9cfd732d54000ebaa3f08b3
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10613
    title: "microsoft/BCApps#10613: [Master] - Slice 640775: [Sustainability] Reverse Sustainability part when reverse in GL Entries"
    date: "2026-09-01"
    commit: f504539e29fd9513b9cfd732d54000ebaa3f08b3
    t: null
    quote: When a G/L transaction that included a sustainability part is reversed (Reverse Transaction), the sustainability part is now reversed too.
links:
  learn: []
  objects:
    - object/codeunit/6283
    - object/codeunit/6251
    - object/codeunit/6243
    - object/codeunit/6245
    - object/table/6216
    - object/codeunit/6212
    - object/codeunit/5600
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10613
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10613
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-01T10:15:04Z"
author: v-rohangarg20
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Ownership: Manual"
  - "Team: Other"
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 10
  additions: 241
  deletions: 3
  al: 9
apps:
  - Base Application
  - Sustainability
objects_touched:
  - key: codeunit/6283
    page: codeunit/6283
    type: codeunit
    id: 6283
    name: Sust. FA Journal Subscriber
    app: Sustainability
    status: modified
  - key: codeunit/6251
    page: codeunit/6251
    type: codeunit
    id: 6251
    name: Sust. Gen. Journal Subscriber
    app: Sustainability
    status: modified
  - key: codeunit/6243
    page: codeunit/6243
    type: codeunit
    id: 6243
    name: Sust. Entry Reverse Mgt.
    app: Sustainability
    status: modified
  - key: codeunit/6245
    page: codeunit/6245
    type: codeunit
    id: 6245
    name: Sust. GL Reverse Subscriber
    app: Sustainability
    status: added
  - key: table/6216
    page: table/6216
    type: table
    id: 6216
    name: Sustainability Ledger Entry
    app: Sustainability
    status: modified
  - key: codeunit/6212
    page: codeunit/6212
    type: codeunit
    id: 6212
    name: Sustainability Post Mgt
    app: Sustainability
    status: modified
  - key: codeunit/5600
    page: codeunit/5600
    type: codeunit
    id: 5600
    name: FA Insert Ledger Entry
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 10643
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/10643
fixes_issues: []
work_items:
  - 640775
systems:
  - sustainability
  - fixed-assets
quote: When a G/L transaction that included a sustainability part is reversed (Reverse Transaction), the sustainability part is now reversed too.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10613 [Master] - Slice 640775: [Sustainability] Reverse Sustainability part when reverse in GL Entries

> Reversing a G/L transaction now also reverses the sustainability ledger entries linked to it by transaction number, skipping entries already reversed. The reversing FA ledger entry gets a negated Total CO2e, so the fixed asset's Acquisition Total CO2e nets to zero.

[Pull request](https://github.com/microsoft/BCApps/pull/10613) · merged into `main` (BC30) on 2026-09-01 by v-rohangarg20 · 10 files (+241 -3), 9 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Sustainability ledger entries are stamped with the G/L Transaction No. during General Journal and FA G/L Journal posting
- Reverse Transaction on a G/L transaction reverses the linked sustainability entries through Sust. Entry Reverse Mgt.
- Sustainability entries that were already reversed are skipped
- The reversing FA ledger entry's Total CO2e is negated, so Acquisition Total CO2e nets to zero
- OnCodeOnAfterStartOrContinuePosting now passes NextTransactionNo, and a new event OnInsertReverseEntryOnBeforeInsertFALedgEntry was added
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6283 "Sust. FA Journal Subscriber"](../../objects/codeunit/6283.md), Sustainability: modified
- [Codeunit 6251 "Sust. Gen. Journal Subscriber"](../../objects/codeunit/6251.md), Sustainability: modified
- [Codeunit 6243 "Sust. Entry Reverse Mgt."](../../objects/codeunit/6243.md), Sustainability: modified
- [Codeunit 6245 "Sust. GL Reverse Subscriber"](../../objects/codeunit/6245.md), Sustainability: added
- [Table 6216 "Sustainability Ledger Entry"](../../objects/table/6216.md), Sustainability: modified
- [Codeunit 6212 "Sustainability Post Mgt"](../../objects/codeunit/6212.md), Sustainability: modified
- [Codeunit 5600 "FA Insert Ledger Entry"](../../objects/codeunit/5600.md), Base Application: modified

## Also merged into

- [#10643](https://github.com/microsoft/BCApps/pull/10643) into `releases/29.x` on 2026-09-01

## Context

- Work items: AB#640775
- Labels: AL: Apps (W1), Ownership: Manual, Team: Other
- Systems: sustainability, fixed-assets
- From the description: "When a G/L transaction that included a sustainability part is reversed (Reverse Transaction), the sustainability part is now reversed too."

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