---
id: change/bcapps/10369
type: change
title: "#10369 Bug 640428: Fix Production BOM Comment Line TableRelation filters"
summary: Table relations in the Production BOM Comment Line table are corrected to properly filter by version. The Version Code field now shows all versions of a production BOM, and the BOM Line No. field correctly filters by both production BOM number and version code.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table production bom comment line
system: manufacturing
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:07:26.119Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: b2e0c2c4fb3131785587920f35f0e7736a3cd138
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10369
    title: "microsoft/BCApps#10369: Bug 640428: Fix Production BOM Comment Line TableRelation filters"
    date: "2026-08-27"
    commit: b2e0c2c4fb3131785587920f35f0e7736a3cd138
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/table/99000776
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10369
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10369
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-27T22:35:15Z"
author: ChethanT
author_type: User
community_contribution: false
labels:
  - "Ownership: Manual"
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 4
  additions: 216
  deletions: 4
  al: 1
apps:
  - Base Application
objects_touched:
  - key: table/99000776
    page: table/99000776
    type: table
    id: 99000776
    name: Production BOM Comment Line
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 640428
systems:
  - manufacturing
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10369 Bug 640428: Fix Production BOM Comment Line TableRelation filters

> Table relations in the Production BOM Comment Line table are corrected to properly filter by version. The Version Code field now shows all versions of a production BOM, and the BOM Line No. field correctly filters by both production BOM number and version code.

[Pull request](https://github.com/microsoft/BCApps/pull/10369) · merged into `main` (BC30) on 2026-08-27 by ChethanT · 4 files (+216 -4), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Version Code field relation fixed: removed self-referential constraint, now shows all versions for the production BOM
- BOM Line No. field relation fixed: added missing version code filter to prevent selecting lines from different versions
- Library function CreateProductionBOMCommentLine reordered to validate version code before BOM line number
- Tests added to verify version lookup displays all versions and that invalid line numbers from other versions are rejected
- Addresses root cause that production BOM lines are partitioned by version but relations did not account for this
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 99000776 "Production BOM Comment Line"](../../objects/table/99000776.md), Base Application: modified

## Context

- Work items: AB#640428
- Labels: Ownership: Manual, Team: SCM
- Systems: manufacturing

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