code change · fixManufacturingofficial - Microsoftreviewed - checked by Opus

#14502 [main][Subcontracting] Create Return includes components and WIP from unrelated purchase orders

Return transfer orders in subcontracting now correctly filter by purchase order number to prevent including lines from unrelated orders.

Pull request · merged into main (BC30) on 2026-11-27 by Shikhverma · 2 files (+232 -10), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Return transfer headers are now filtered by Subcontr. Purch. Order No. when creating return orders
  • Prevents mixing of components and WIP from different subcontracting purchase orders
  • Regression test coverage expanded to verify purchase-order isolation
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#660503
  • Labels: AL: Apps (W1), Team: SCM
  • Systems: manufacturing
  • From the description: “Filter matching return headers by Subcontr. Purch. Order No. and update regression coverage to verify purchase-order isolation.”

No source states these links: they share an object, a model read them, or a person found the same subject.

  • Process sales return orders — possibly related: Return orders creation and handling components aligns with sales return order process documentation. (model-linked)

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