---
id: change/bcapps/14427
type: change
title: "#14427 [main] Bug 660065 Direct transfer with \"Shipment and Receipt\" posting can't be posted when an In-Transit Code is specified"
summary: Direct transfers with 'Shipment and Receipt' posting now succeed when an In-Transit Code is specified, by allowing the shipment leg to post to a real in-transit location instead of requiring a blank location.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit item jnl.-check line
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-11-30T15:07:53.891Z"
  flags: []
generated:
  at: "2026-12-01T00:17:57.990Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: c6a96a855b61cf62533ce318384814ebf9dab57e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14427
    title: "microsoft/BCApps#14427: [main] Bug 660065 Direct transfer with \"Shipment and Receipt\" posting can't be posted when an In-Transit Code is specified"
    date: "2026-11-30"
    commit: c6a96a855b61cf62533ce318384814ebf9dab57e
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/21
  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 between locations with posting methods and in-transit tracking
      by: model
number: 14427
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14427
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-30T12:05:18Z"
author: MSNehaNawal
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 4
  additions: 189
  deletions: 3
  al: 3
apps:
  - Base Application
objects_touched:
  - key: codeunit/21
    page: codeunit/21
    type: codeunit
    id: 21
    name: Item Jnl.-Check Line
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/ES/BaseApp/Inventory/Journal/ItemJnlCheckLine.Codeunit.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 660356
systems:
  - inventory
quote: null
joined_against:
  major: "30"
  commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
---

# #14427 [main] Bug 660065 Direct transfer with "Shipment and Receipt" posting can't be posted when an In-Transit Code is specified

> Direct transfers with 'Shipment and Receipt' posting now succeed when an In-Transit Code is specified, by allowing the shipment leg to post to a real in-transit location instead of requiring a blank location.

[Pull request](https://github.com/microsoft/BCApps/pull/14427) · merged into `main` (BC30) on 2026-11-30 by MSNehaNawal · 4 files (+189 -3), 3 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Fixes validation logic in ItemJnlCheckLine that incorrectly rejected direct transfer shipments when Location Mandatory was enabled and an in-transit location was set
- Added new helper function IsDirectTransferShipmentViaInTransit to identify direct transfer shipments posting to in-transit locations
- Receipt leg of direct transfers already worked correctly; only the shipment leg validation needed adjustment
- Applied fix to W1, ES, and RU localization layers
- Includes test coverage for the scenario in SCMDirectTransferWarehouse test codeunit
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 21 "Item Jnl.-Check Line"](../../objects/codeunit/21.md), Base Application: modified
- `src/Layers/ES/BaseApp/Inventory/Journal/ItemJnlCheckLine.Codeunit.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#660356
- 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 between locations with posting methods and in-transit tracking (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).
