---
id: change/bcapps/11411
type: change
title: "#11411 [Master]-Item Availability by BOM Level Produces Inconsistent Able-to-Make Results When G-TOP-BOM-02 Replenishment Changes from Assembly to Purchase - 2606050050002529"
summary: Fixed inconsistent able-to-make calculations in BOM analysis when a component's replenishment method changes between assembly and purchase types.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit calculate bom tree
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:05:14.684Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 42d69968a63e2fd951bba15e3dc51b50df932ffe
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11411
    title: "microsoft/BCApps#11411: [Master]-Item Availability by BOM Level Produces Inconsistent Able-to-Make Results When G-TOP-BOM-02 Replenishment Changes from Assembly to Purchase - 2606050050002529"
    date: "2026-09-15"
    commit: 42d69968a63e2fd951bba15e3dc51b50df932ffe
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/5870
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11411
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11411
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-15T05:50:00Z"
author: neeleshsinghal
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 131
  deletions: 0
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/5870
    page: codeunit/5870
    type: codeunit
    id: 5870
    name: Calculate BOM Tree
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 650094
systems:
  - inventory
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #11411 [Master]-Item Availability by BOM Level Produces Inconsistent Able-to-Make Results When G-TOP-BOM-02 Replenishment Changes from Assembly to Purchase - 2606050050002529

> Fixed inconsistent able-to-make calculations in BOM analysis when a component's replenishment method changes between assembly and purchase types.

[Pull request](https://github.com/microsoft/BCApps/pull/11411) · merged into `main` (BC30) on 2026-09-15 by neeleshsinghal · 2 files (+131 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Corrected BOM tree calculation logic for replenishment method transitions
- Added test coverage for mixed replenishment scenarios (assembly to purchase)
- Ensures item availability calculations remain consistent across component replenishment changes
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 5870 "Calculate BOM Tree"](../../objects/codeunit/5870.md), Base Application: modified

## Context

- Work items: AB#650094
- Labels: Team: SCM
- Systems: inventory

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