#10924 [main] Bug 648630 Movement Worksheet Creates Incorrect Warehouse Movement for FEFO Lot-Tracked Items
Fixed availability calculation in Create Pick codeunit to exclude outbound quantities when calculating available inventory for warehouse movements of FEFO lot-tracked items, preventing the worksheet from selecting already-committed lots.
- 2files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-09-07 by MSNehaNawal · 2 files (+219 -0), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- CalcTotalAvailQtyToPick in Create Pick now subtracts quantity already in outbound bins when called from the Movement Worksheet
- The adjusted quantity is clamped at zero before being added to total available quantity
- Movement Worksheet now picks the next available FEFO lot instead of one already committed to sales orders
- Fixes a regression for lot-tracked items with picked-not-shipped quantities and pending picks
- Adds regression tests in the SCM movement test codeunit
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 7312 “Create Pick”, Base Application: modified
Context
- Work items: AB#648630
- Labels: Team: SCM
- Systems: warehouse
- From the description: “Movement Worksheet Creates Incorrect Warehouse Movement for FEFO Lot-Tracked Items When Picked-Not-Shipped and Pending Picks Exist.”
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).