code change · fixSales & Receivablesofficial - Microsoftreviewed - checked by Opus

#13547 [29.X]-Sales Order line quantities are incorrectly updated after posting a Return Order linked to a Posted Sales Invoice via Applies-to Doc. No. on a Credit Memo

The correct posted sales invoice functionality now properly handles return orders linked to posted sales invoices through applies-to document numbers on credit memos, fixing incorrect line quantity updates.

Pull request · merged into releases/29.x (BC29) on 2026-11-03 by neeleshsinghal · 5 files (+202 -0), 3 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Corrects quantity update logic when return orders reference posted sales invoices via applies-to field
  • Addresses issue where sales order line quantities were incorrectly modified after posting
  • Includes test coverage for the copy purchase and sales documents functionality
  • Changes applied across multiple localization layers (W1, ES, APAC)
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#657706
  • Labels: Team: SCM
  • Systems: sales

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

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