code change · featureSustainabilityofficial - Microsoftreviewed - checked by Opus

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

Also merged into

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