code change · fixInventoryofficial - Microsoftreviewed - checked by Opus

#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 · 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

Context

  • Work items: AB#660356
  • Labels: Team: SCM
  • Systems: inventory

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

  • Transfer items 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).