---
id: change/bcapps/14020
type: change
title: "#14020 Bug 650215: Direct Transfer route does not populate configured In-Transit Code on transfer order"
summary: Transfer orders using routes now correctly apply the configured In-Transit Code for Shipment and Receipt transfers, while clearing it for Direct Transfer posting mode.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table transfer header
  - table transfer line
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-11-19T00:57:42.856Z"
  flags: []
generated:
  at: "2026-11-30T13:33:07.232Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 8a50fc635361e47fc0c2cfd61ed5a0df309c210e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14020
    title: "microsoft/BCApps#14020: Bug 650215: Direct Transfer route does not populate configured In-Transit Code on transfer order"
    date: "2026-11-18"
    commit: 8a50fc635361e47fc0c2cfd61ed5a0df309c210e
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/table/5740
    - object/table/5741
  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 in-transit tracking between locations.
      by: model
number: 14020
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14020
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-18T14:40:35Z"
author: ChethanT
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 9
  additions: 570
  deletions: 20
  al: 8
apps:
  - Base Application
objects_touched:
  - key: table/5740
    page: table/5740
    type: table
    id: 5740
    name: Transfer Header
    app: Base Application
    status: modified
  - key: table/5741
    page: table/5741
    type: table
    id: 5741
    name: Transfer Line
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/RU/BaseApp/Inventory/Transfer/TransferHeader.Table.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/RU/BaseApp/Inventory/Transfer/TransferLine.Table.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 650215
systems:
  - inventory
quote: null
joined_against:
  major: "30"
  commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
---

# #14020 Bug 650215: Direct Transfer route does not populate configured In-Transit Code on transfer order

> Transfer orders using routes now correctly apply the configured In-Transit Code for Shipment and Receipt transfers, while clearing it for Direct Transfer posting mode.

[Pull request](https://github.com/microsoft/BCApps/pull/14020) · merged into `main` (BC30) on 2026-11-18 by ChethanT · 9 files (+570 -20), 8 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Route In-Transit Code now applied for Shipment and Receipt and non-direct routes, and cleared for Direct Transfer posting
- For direct transfers, existing lines are synced with the header in-transit value when either location changes
- Direct-transfer receipt quantities stay aligned with shipment quantities even when the route has a transit code
- Line's cached header gets the in-memory header and Direct Transfer flag before location validation, preventing stale route mode
- Thirteen regression tests added; changes propagated to IT, NA and RU layers
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 5740 "Transfer Header"](../../objects/table/5740.md), Base Application: modified
- [Table 5741 "Transfer Line"](../../objects/table/5741.md), Base Application: modified
- `src/Layers/RU/BaseApp/Inventory/Transfer/TransferHeader.Table.al`: modified, not in the BC30 snapshot
- `src/Layers/RU/BaseApp/Inventory/Transfer/TransferLine.Table.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#650215
- Labels: Team: SCM
- Systems: inventory

## 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 in-transit tracking 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).
