---
id: change/bcapps/13331
type: change
title: "#13331 [Main]-Warehouse Picks Creating Incorrect Line Splitting final pick."
summary: 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.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit create pick
system: warehouse
review:
  state: reviewed
  by: opus
  at: "2026-11-25T01:04:59.904Z"
  flags: []
generated:
  at: "2026-11-28T00:12:53.289Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 024ed26c439952ffa052829b8436610f921de076
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13331
    title: "microsoft/BCApps#13331: [Main]-Warehouse Picks Creating Incorrect Line Splitting final pick."
    date: "2026-11-24"
    commit: 024ed26c439952ffa052829b8436610f921de076
    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-split-warehouse-activity-lines
      title: How to Split Warehouse Activity Lines
      label: possibly related
      why: Addresses warehouse activity line splitting, which the change fixes for incorrect final pick creation.
      by: model
number: 13331
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13331
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-24T05:50:53Z"
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:
  - 659753
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: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

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

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

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

## Possibly related

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

- [How to Split Warehouse Activity Lines](https://learn.microsoft.com/dynamics365/business-central/warehouse-how-to-split-warehouse-activity-lines) — possibly related: Addresses warehouse activity line splitting, which the change fixes for incorrect final pick creation. (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).
