---
id: change/bcapps/14508
type: change
title: "#14508 [29.x]-Warehouse Picks Creating Incorrect Line Splitting final pick."
summary: 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.
tier: official
language: en
tags:
  - fix
  - releases/29.x
  - bc29
  - codeunit create pick
system: warehouse
review:
  state: reviewed
  by: opus
  at: "2026-11-30T15:07:38.273Z"
  flags: []
generated:
  at: "2026-12-01T00:17:57.990Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 68c3d5a3047b28f35c68f04cb97d40812003a227
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14508
    title: "microsoft/BCApps#14508: [29.x]-Warehouse Picks Creating Incorrect Line Splitting final pick."
    date: "2026-11-30"
    commit: 68c3d5a3047b28f35c68f04cb97d40812003a227
    t: null
    quote: Create Pick can assign the first-expiring lot more quantity than is stored in the requested unit of measure.
links:
  learn: []
  objects:
    - object/codeunit/7312
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/warehouse-how-to-pick-items-for-warehouse-shipment
      title: Pick items for warehouse shipment
      label: possibly related
      why: Create Pick codeunit handles warehouse pick document creation and line splitting for warehouse shipment.
      by: model
number: 14508
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14508
kind: pr
base_branch: releases/29.x
major: "29"
merged_at: "2026-11-30T08:22:29Z"
author: DhavalMore88
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - From Fork
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 208
  deletions: 0
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/7312
    page: codeunit/7312
    type: codeunit
    id: 7312
    name: Create Pick
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 659752
systems:
  - warehouse
quote: Create Pick can assign the first-expiring lot more quantity than is stored in the requested unit of measure.
joined_against:
  major: "29"
  commit: 0cf83209e19c2e1b5cab4c1333c4066bff9557c3
---

# #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](https://github.com/microsoft/BCApps/pull/14508) · 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

- [Codeunit 7312 "Create Pick"](../../objects/codeunit/7312.md), Base Application: modified

## 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."

## Possibly related

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](https://learn.microsoft.com/dynamics365/business-central/warehouse-how-to-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).
