#10206 Bug 646576: Preserve manually changed component Flushing Method on subcontracting transfers
Production order components in subcontracting transfers no longer lose their manually set Flushing Method when moved to or from the subcontractor location. A new helper function preserves the Flushing Method during automatic location changes while maintaining all validation side effects.
- 8files
- 7AL files
- 7objects
Pull request · merged into main (BC30) on 2026-08-13 by ChethanT · 8 files (+302 -15), 7 AL · fix · tier official · reviewed (checked by Opus)
What changed
- New helper function ValidateProdOrderCompLocationPreservingFlushingMethod preserves the Flushing Method during automatic subcontracting location moves
- Flushing Method is captured before location validation and restored via plain assignment afterward to avoid triggering OnValidate errors
- All subcontracting location shuttles updated: forward/return transfer reports, direct-transfer posts, and component restore operations
- Plain assignment ensures Bin Code remains unchanged and avoids validation errors on Backward flushing method with consumption entries
- Comprehensive test coverage added with forward transfer and full lifecycle tests demonstrating the fix works with partial consumption
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 20505 “Subcontracting Management”, Subcontracting: modified
- Codeunit 20524 “Subc. Prod. Order Comp. Ext.”, Subcontracting: modified
- Report 20502 “Subc. Create SubCReturnOrder”, Subcontracting: modified
- Report 20501 “Subc. Create Transf. Order”, Subcontracting: modified
- Codeunit 20540 “Subc. TransOrderPostRcpt Ext”, Subcontracting: modified
- Codeunit 20547 “Subc. TransOrderPostTrans Ext”, Subcontracting: modified
- Codeunit 20504 “Subc. Transfer Management”, Subcontracting: modified
Context
- Work items: AB#646576
- 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).