code change · fixWarehouseofficial - Microsoftreviewed - checked by Opus

#14508 [29.x]-Warehouse Picks Creating Incorrect Line Splitting final pick.

Fixed warehouse pick creation when FEFO and no breakbulk are configured by ensuring lot availability is calculated only from bins with the requested unit of measure, preventing incorrect line splitting and shipment shortages.

Pull request · merged into releases/29.x (BC29) on 2026-11-30 by DhavalMore88 (community contribution) · 2 files (+208 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • New CalcQtyAvailToPickInUnitOfMeasure procedure returns how much of a lot can be picked from bins in the requested unit of measure, minus Take lines already created
  • CreateTempItemTrkgLines caps each lot’s available quantity at that value when picking by exact requested unit of measure (FEFO, no breakbulk)
  • Fixes first-expiring lots being assigned more than their stock in the requested unit, which left later lots underfilled and picks short
  • Two regression tests added: one for a single shipment and one for two shipments picked from the pick worksheet
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#659752
  • 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.

  • Pick items for warehouse shipment — possibly related: Create Pick codeunit handles warehouse pick document creation and line splitting for warehouse shipment. (model-linked)

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