code change · featureSustainabilityofficial - Microsoftreviewed - checked by Opus

#10541 [Master] - Slice 641375: [Sustainability] Collect Amount from G/L Entries: track collected entries to prevent double counting

Sustainability Journal's collect amount function now tracks which G/L entries have been collected to prevent double-counting emissions when running collection over overlapping or adjacent periods.

Pull request · merged into main (BC30) on 2026-09-16 by ViditGupta1277 · 15 files (+1267 -7), 13 AL · feature · tier official · reviewed (checked by Opus)

What changed

  • New relation table links collected G/L entries to their corresponding sustainability entries
  • Collect function excludes previously collected entries based on the relation table
  • Indexed collected marker maintains fast exclusion filtering on large ledgers
  • Reversing sustainability entries removes their links, making entries collectable again
  • Follows the existing G/L to Item Ledger Relation model
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#641375
  • Labels: AL: Apps (W1), Team: Finance
  • Systems: sustainability

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