code change · fixWarehouseofficial - Microsoftreviewed - checked by Opus

#13331 [Main]-Warehouse Picks Creating Incorrect Line Splitting final pick.

Create Pick now correctly assigns lot quantities when breakbulk is disabled and FEFO is enabled, preventing shipments from being underpicked by ensuring only inventory in the requested unit of measure counts toward lot availability.

Pull request · merged into main (BC30) on 2026-11-24 by DhavalMore88 (community contribution) · 2 files (+208 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Fixed lot quantity calculation in FEFO picking to respect unit of measure constraints when breakbulk is not allowed
  • New CalcQtyAvailToPickInUnitOfMeasure procedure calculates how much of a lot can be picked from bins holding the requested unit only
  • Prevents scenarios where the first-expiring lot could be assigned more quantity than physically available in the requested unit of measure
  • Ensures subsequent lots receive the remaining quantity needed to fulfill shipments completely
  • Added regression tests for single and multiple shipment scenarios
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#659753
  • Labels: ADO: Sync, From Fork, Team: SCM
  • Systems: warehouse
  • From the description: “Create Pick can assign the first-expiring lot more quantity than is stored in the requested unit of measure.”

No source states these links: they share an object, a model read them, or a person found the same subject.

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