Skip to content

Bug 646701: [28.x] [Backport] Guided error for subcontracting direct transfer from whse-handling location - #10229

Merged
alexei-dobriansky merged 2 commits into
releases/28.xfrom
bugs/646701-SubcDirectTransferWhseHandling
Aug 14, 2026
Merged

Bug 646701: [28.x] [Backport] Guided error for subcontracting direct transfer from whse-handling location#10229
alexei-dobriansky merged 2 commits into
releases/28.xfrom
bugs/646701-SubcDirectTransferWhseHandling

Conversation

@alexei-dobriansky

@alexei-dobriansky alexei-dobriansky commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Backport of #9085 to
releases/28.x.

Fixes AB#646701

Report Subc. Create Transf. Order (InsertTransferHeader) previously blocked subcontracting transfers with a raw TestField error when the transfer-from location required warehouse handling (Require Shipment / Require Picking) and no in-transit transfer route existed.

This change adds CheckDirectTransferAllowed / IsOneStepDirectTransfer so that:

  • A guided, actionable error is raised instead of a raw TestField error.
  • Direct Transfer posting (route or Inventory Setup) skips the outbound warehouse-handling check.
  • The route's In-Transit Code is honored when the route is not a one-step direct transfer.

Includes tests for the blocked case, the Direct-Transfer-posting allowed case, and the in-transit route case.

…-handling location

Port of #9085 to 28.x.

Report `Subc. Create Transf. Order` (InsertTransferHeader) blocked subcontracting transfers with a raw TestField error when the transfer-from location required warehouse handling and no in-transit route existed. Add CheckDirectTransferAllowed/IsOneStepDirectTransfer so a guided error is raised, honor Direct Transfer posting, and keep the route's In-Transit Code when present. Includes tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: fc346121-b5aa-4020-b219-fba567f98b2d
@alexei-dobriansky
alexei-dobriansky requested a review from a team August 13, 2026 11:28
@alexei-dobriansky
alexei-dobriansky requested a review from a team as a code owner August 13, 2026 11:28
@github-actions github-actions Bot added AL: Apps (W1) Add-on apps for W1 SCM GitHub request for SCM area labels Aug 13, 2026
@github-actions github-actions Bot added this to the Version 28.5 milestone Aug 13, 2026
@alexei-dobriansky alexei-dobriansky self-assigned this Aug 13, 2026
@alexei-dobriansky alexei-dobriansky added the Subcontracting Subcontracting related activities label Aug 13, 2026
@alexei-dobriansky alexei-dobriansky changed the title Bug 646701: Guided error for subcontracting direct transfer from whse-handling location Bug 646701: [28.x] [BackportGuided error for subcontracting direct transfer from whse-handling location Aug 13, 2026
@alexei-dobriansky alexei-dobriansky changed the title Bug 646701: [28.x] [BackportGuided error for subcontracting direct transfer from whse-handling location Bug 646701: [28.x] [Backport] Guided error for subcontracting direct transfer from whse-handling location Aug 13, 2026
Base app 28.x has no `Direct Transfer Posting Type` enum and no route-level direct-transfer fields; Inventory Setup exposes the Option field `Direct Transfer Posting` (Receipt and Shipment / Direct Transfer). Use that Option instead of the enum, drop the unsupported transfer-route branch, and drop the 29.x-only in-transit-route test that referenced non-existent fields.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: fc346121-b5aa-4020-b219-fba567f98b2d
@alexei-dobriansky
alexei-dobriansky enabled auto-merge (squash) August 13, 2026 11:59
@alexei-dobriansky
alexei-dobriansky enabled auto-merge (squash) August 14, 2026 08:39
@alexei-dobriansky
alexei-dobriansky merged commit 2a5a2f3 into releases/28.x Aug 14, 2026
60 of 63 checks passed
@alexei-dobriansky
alexei-dobriansky deleted the bugs/646701-SubcDirectTransferWhseHandling branch August 14, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1 SCM GitHub request for SCM area Subcontracting Subcontracting related activities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants