---
id: change/bcapps/10624
type: change
title: "#10624 [MAIN]-Bug 647352 Issue with lot no assignment after posting a transfer order"
summary: Transfer shipments for tracked items now correctly consume the matching lot or serial number instead of incorrectly reducing other lot quantities, by rejecting mismatched reservations and applying proper tracking filters.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit item jnl.-post line
  - codeunit package management
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:07:07.626Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 7f753cfa0ba34ee20706372b0f814b12208ef325
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10624
    title: "microsoft/BCApps#10624: [MAIN]-Bug 647352 Issue with lot no assignment after posting a transfer order"
    date: "2026-09-01"
    commit: 7f753cfa0ba34ee20706372b0f814b12208ef325
    t: null
    quote: Reject mismatched reservations and apply transfer tracking filters so the outbound entry consumes the correct lot
links:
  learn: []
  objects:
    - object/codeunit/22
    - object/codeunit/6516
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10624
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10624
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-01T08:47:11Z"
author: v-praghav
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 9
  additions: 752
  deletions: 2
  al: 7
apps:
  - Base Application
objects_touched:
  - key: codeunit/22
    page: codeunit/22
    type: codeunit
    id: 22
    name: Item Jnl.-Post Line
    app: Base Application
    status: modified
  - key: codeunit/6516
    page: codeunit/6516
    type: codeunit
    id: 6516
    name: Package Management
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/APAC/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/CH/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/ES/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/IT/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 647352
systems:
  - inventory
quote: Reject mismatched reservations and apply transfer tracking filters so the outbound entry consumes the correct lot
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #10624 [MAIN]-Bug 647352 Issue with lot no assignment after posting a transfer order

> Transfer shipments for tracked items now correctly consume the matching lot or serial number instead of incorrectly reducing other lot quantities, by rejecting mismatched reservations and applying proper tracking filters.

[Pull request](https://github.com/microsoft/BCApps/pull/10624) · merged into `main` (BC30) on 2026-09-01 by v-praghav · 9 files (+752 -2), 7 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Fixes incorrect lot number reduction in transfer orders caused by reservation-based application not validating lot/serial tracking
- Adds validation to reject mismatched reservations that don't correspond to the correct tracking dimension
- Applies transfer tracking filters to ensure outbound entries consume the correct lot or serial number
- Changes made across multiple localization layers (APAC, CH, ES, IT, RU, W1) to ensure consistent behavior
- Includes test updates to verify the fix works correctly
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 22 "Item Jnl.-Post Line"](../../objects/codeunit/22.md), Base Application: modified
- [Codeunit 6516 "Package Management"](../../objects/codeunit/6516.md), Base Application: modified
- `src/Layers/APAC/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/CH/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/ES/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/IT/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#647352
- Labels: Team: SCM
- Systems: inventory
- From the description: "Reject mismatched reservations and apply transfer tracking filters so the outbound entry consumes the correct lot"

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