code change · fixInventoryofficial - Microsoftreviewed - checked by Opus

#9081 Bug 637846: Item Age Composition '...before' quantity reflected only last entry

Report 5808 now correctly displays item age composition quantities across all ledger entries instead of only the last one, while preserving column bindings by maintaining unchanged column names.

Pull request · merged into main (BC30) on 2026-07-08 by alexei-dobriansky · 2 files (+58 -7), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Quantity buckets now accumulate values from all item ledger entries using a new InvtQtyTotal array
  • Output totals are calculated after processing all entries instead of just showing the last entry’s values
  • Value columns continue working correctly as before
  • Column names unchanged to preserve existing layout bindings
  • Test coverage extended
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#637846
  • Labels: Team: SCM
  • Systems: inventory
  • From the description: “quantities reflected only the last ILE”

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