#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.
- 15files
- 13AL files
- 13objects
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
- Page 6224 “Collect Amount from G/L Entry”, Sustainability: modified
- Codeunit 6218 “Sustainability Calc. Mgt.”, Sustainability: modified
- Table 6260 “Sust. Jnl. Line G/L Entry”, Sustainability: added
- Table 6214 “Sustainability Jnl. Line”, Sustainability: modified
- Codeunit 6243 “Sust. Entry Reverse Mgt.”, Sustainability: modified
- Page 6339 “Sust. G/L - Sust. Ledger Rel.”, Sustainability: added
- Table 6261 “Sust. G/L - Sust. Ledger Rel.”, Sustainability: added
- Page 6220 “Sustainability Ledger Entries”, Sustainability: modified
- Table 6216 “Sustainability Ledger Entry”, Sustainability: modified
- Permission set 6213 “Sustainability Edit”, Sustainability: modified
- Permission set 6210 “Sustainability - Objects”, Sustainability: modified
- Permission set 6211 “Sustainability Read”, Sustainability: modified
- Codeunit 6212 “Sustainability Post Mgt”, Sustainability: modified
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).