---
id: change/bcapps/12541
type: change
title: "#12541 Preserve transfer line UOM when toggling Direct Transfer"
summary: When toggling Direct Transfer on a transfer line with a non-base unit of measure, the selected UOM and its quantity conversion are now preserved instead of reverting to the item's base unit. The warehouse validator also explicitly rejects Direct Transfer changes when matching warehouse shipment, receipt, or activity lines exist.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table transfer line
  - codeunit whse. validate source line
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-23T01:11:44.824Z"
  flags: []
generated:
  at: "2026-11-13T00:13:31.718Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 3e94ea8c7700c542c2926ea2d8ca3ec51b2b0f56
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12541
    title: "microsoft/BCApps#12541: Preserve transfer line UOM when toggling Direct Transfer"
    date: "2026-10-22"
    commit: 3e94ea8c7700c542c2926ea2d8ca3ec51b2b0f56
    t: null
    quote: Preserve the selected transfer-line unit of measure and outbound reservations when Direct Transfer is toggled.
links:
  learn: []
  objects:
    - object/table/5741
    - object/codeunit/5777
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/inventory-how-transfer-between-locations
      title: Transfer items between locations
      label: possibly related
      why: Documents transfer orders and direct transfers for managing inventory between locations.
      by: model
number: 12541
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12541
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-22T09:50:26Z"
author: attilatoury
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 6
  additions: 507
  deletions: 8
  al: 5
apps:
  - Base Application
objects_touched:
  - key: table/5741
    page: table/5741
    type: table
    id: 5741
    name: Transfer Line
    app: Base Application
    status: modified
  - key: codeunit/5777
    page: codeunit/5777
    type: codeunit
    id: 5777
    name: Whse. Validate Source Line
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/RU/BaseApp/Inventory/Transfer/TransferLine.Table.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 652555
systems:
  - inventory
  - warehouse
quote: Preserve the selected transfer-line unit of measure and outbound reservations when Direct Transfer is toggled.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #12541 Preserve transfer line UOM when toggling Direct Transfer

> When toggling Direct Transfer on a transfer line with a non-base unit of measure, the selected UOM and its quantity conversion are now preserved instead of reverting to the item's base unit. The warehouse validator also explicitly rejects Direct Transfer changes when matching warehouse shipment, receipt, or activity lines exist.

[Pull request](https://github.com/microsoft/BCApps/pull/12541) · merged into `main` (BC30) on 2026-10-22 by attilatoury · 6 files (+507 -8), 5 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- UOM and converted quantity are retained during Direct Transfer toggle instead of resetting to base unit
- Reservation handling is improved by validating UOM before the first quantity validation to maintain conversion precision
- Warehouse protection is made explicit: mode changes are rejected only when matching warehouse lines exist, not based on location requirements alone
- Four localized Transfer Line tables and one shared warehouse validator were updated
- Comprehensive regression tests cover UOM roundtrips, reservations, and warehouse scenarios
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 5741 "Transfer Line"](../../objects/table/5741.md), Base Application: modified
- [Codeunit 5777 "Whse. Validate Source Line"](../../objects/codeunit/5777.md), Base Application: modified
- `src/Layers/RU/BaseApp/Inventory/Transfer/TransferLine.Table.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#652555
- Labels: Team: SCM
- Systems: inventory, warehouse
- From the description: "Preserve the selected transfer-line unit of measure and outbound reservations when Direct Transfer is toggled."

## Possibly related

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

- [Transfer items between locations](https://learn.microsoft.com/dynamics365/business-central/inventory-how-transfer-between-locations) — possibly related: Documents transfer orders and direct transfers for managing inventory between locations. (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).
