code change · fixManufacturingofficial - Microsoftreviewed - checked by Opus

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

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

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).