---
id: change/bcapps/9081
type: change
title: "#9081 Bug 637846: Item Age Composition '...before' quantity reflected only last entry"
summary: 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.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - report item age composition - value
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:13:36.648Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: b74b49c3f46bbc6cbae70aa6249954909638896d
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9081
    title: "microsoft/BCApps#9081: Bug 637846: Item Age Composition '...before' quantity reflected only last entry"
    date: "2026-07-08"
    commit: b74b49c3f46bbc6cbae70aa6249954909638896d
    t: null
    quote: quantities reflected only the last ILE
links:
  learn: []
  objects:
    - object/report/5808
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9081
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9081
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-08T10:20:50Z"
author: alexei-dobriansky
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 58
  deletions: 7
  al: 1
apps:
  - Base Application
objects_touched:
  - key: report/5808
    page: report/5808
    type: report
    id: 5808
    name: Item Age Composition - Value
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 637846
systems:
  - inventory
quote: quantities reflected only the last ILE
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #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](https://github.com/microsoft/BCApps/pull/9081) · 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

- [Report 5808 "Item Age Composition - Value"](../../objects/report/5808.md), Base Application: modified

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