Skip to content

[Subcontracting] Bug 648949: Allow subcontracting direct transfers from warehouse locations - #11280

Open
alexei-dobriansky wants to merge 1 commit into
mainfrom
fix/648949-subcontracting-warehouse-direct-transfer
Open

[Subcontracting] Bug 648949: Allow subcontracting direct transfers from warehouse locations#11280
alexei-dobriansky wants to merge 1 commit into
mainfrom
fix/648949-subcontracting-warehouse-direct-transfer

Conversation

@alexei-dobriansky

@alexei-dobriansky alexei-dobriansky commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

What & why

Remove the obsolete outbound warehouse guard in Subc. Create Transf. Order. BaseApp supports direct Shipment and Receipt transfers from warehouse-enabled source locations, but the report rejected them before creating the transfer.

Retain the valid changes from 640958: posting-mode selection, explicit in-transit-code preservation, and the existing one-step/in-transit regression tests. Keep the equivalent 28.x guard unchanged because that release does not have the same BaseApp capability.

Replace the incorrect negative test and add straightforward Require Shipment scenarios for component transfers with an explicit route and WIP-only transfers without a route. Each scenario is readable in its test procedure; setup helpers are separate and branch-free.

Linked work

Fixes AB#648949

How I validated this

  • I read the full diff and it contains only changes I intended.
  • I built the affected app(s) locally with no new analyzer warnings.
  • I ran the change in Business Central and confirmed it behaves as expected.
  • I added or updated tests for the new behavior.

What I tested and the outcome

Source-only validation: inspected the introducing commit and BaseApp validation/posting paths; checked the final diff and the test/helper structure. git diff --check passed.

The added AL scenarios cover automatic shipment and receipt, component quantities and locations, and WIP ledger effects without physical inventory entries. Local compilation, publishing, and AL test execution were not performed for this change, as requested. These scenarios have not been runtime-validated.

Risk & compatibility

No schema or dependency changes. Preserve BaseApp destination restrictions, one-step posting, and in-transit handling. This correction is for main/29 behavior and must not be backported to 28.x unchanged.

Remove the obsolete outbound warehouse guard for AB#648949 while preserving posting-mode and in-transit handling. Add straightforward Require Shipment regressions for component and WIP transfers.

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

Copilot-Session: fb8e3994-dce0-4773-9daa-932d8bd11dc3
@alexei-dobriansky
alexei-dobriansky requested a review from a team September 9, 2026 15:06
@alexei-dobriansky
alexei-dobriansky requested a review from a team as a code owner September 9, 2026 15:06
@github-actions github-actions Bot added the AL: Apps (W1) Add-on apps for W1 label Sep 9, 2026
@alexei-dobriansky alexei-dobriansky self-assigned this Sep 9, 2026
@alexei-dobriansky alexei-dobriansky added Team: SCM GitHub request for SCM area Subcontracting Subcontracting related activities Ownership: Manual Preserve the manually selected team ownership labels Sep 9, 2026
@alexei-dobriansky alexei-dobriansky changed the title Bug 648949: Allow subcontracting direct transfers from warehouse locations [Subcontracting] Bug 648949: Allow subcontracting direct transfers from warehouse locations Sep 9, 2026
@github-actions github-actions Bot added this to the Version 30.0 milestone Sep 9, 2026
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 Ownership: Manual Preserve the manually selected team ownership Subcontracting Subcontracting related activities Team: SCM GitHub request for SCM area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant