#9741 [Subcontracting] Bug 638816: Preserve Transfer WIP Item flag when toggling off Direct Transfer without a transit route
Fixed a bug where toggling off Direct Transfer on a Subcontracting Transfer Order with a WIP item and no transfer route caused an error. The Transfer WIP Item flag is now properly preserved during the toggle operation.
- 2files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-07-28 by ChethanT · 2 files (+72 -0), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- The Transfer WIP Item flag was being reset when Direct Transfer was toggled off and no transfer route existed
- The fix restores the Transfer WIP Item field alongside other Subcontracting fields during the copy operation
- Previously added guard logic now correctly skips redundant re-validation in all toggle scenarios
- Added test case covering the scenario without a transit route
- Existing toggle tests continue to pass
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 20544 “Subc. Transfer Line Ext.”, Subcontracting: modified
Context
- Work items: AB#638816
- Labels: AL: Apps (W1), Subcontracting, Team: SCM
- Systems: manufacturing
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).