---
id: change/bcapps/9982
type: change
title: "#9982 [Main] Item tracking validation when lot numbers are assigned concerns the warehouse pick level rather than at the sales order levelInitial Commit"
summary: Fixes a bug where item tracking validation for assigned lot numbers was evaluated at the warehouse pick level instead of at the sales order level. Logic was added to the Item Tracking Data Collection codeunit, with new tests in the W1 and RU SCM item tracking test codeunits.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit item tracking data collection
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:05:36.020Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 4c621fdc334574d8b95d48680998f48e433a0ed6
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9982
    title: "microsoft/BCApps#9982: [Main] Item tracking validation when lot numbers are assigned concerns the warehouse pick level rather than at the sales order levelInitial Commit"
    date: "2026-09-21"
    commit: 4c621fdc334574d8b95d48680998f48e433a0ed6
    t: null
    quote: Item tracking validation when lot numbers are assigned concerns the warehouse pick level rather than at the sales order level
links:
  learn: []
  objects:
    - object/codeunit/6501
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9982
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9982
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-21T05:27:48Z"
author: Shikhverma
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 1008
  deletions: 29
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/6501
    page: codeunit/6501
    type: codeunit
    id: 6501
    name: Item Tracking Data Collection
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 646429
systems:
  - inventory
quote: Item tracking validation when lot numbers are assigned concerns the warehouse pick level rather than at the sales order level
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9982 [Main] Item tracking validation when lot numbers are assigned concerns the warehouse pick level rather than at the sales order levelInitial Commit

> Fixes a bug where item tracking validation for assigned lot numbers was evaluated at the warehouse pick level instead of at the sales order level. Logic was added to the Item Tracking Data Collection codeunit, with new tests in the W1 and RU SCM item tracking test codeunits.

[Pull request](https://github.com/microsoft/BCApps/pull/9982) · merged into `main` (BC30) on 2026-09-21 by Shikhverma · 3 files (+1008 -29), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Fixes bug 646429 on item tracking validation for assigned lot numbers
- Validation previously considered the warehouse pick level rather than the sales order level
- New logic added to codeunit 6501 Item Tracking Data Collection
- Regression tests added to the W1 and RU SCM Item Tracking test codeunits
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6501 "Item Tracking Data Collection"](../../objects/codeunit/6501.md), Base Application: modified

## Context

- Work items: AB#646429
- Labels: Team: SCM
- Systems: inventory
- From the description: "Item tracking validation when lot numbers are assigned concerns the warehouse pick level rather than at the sales order level"

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