code change · fixInventoryofficial - Microsoftreviewed - checked by Opus

#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 · 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”, Base Application: modified
  • Codeunit 6516 “Package Management”, 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).