code change · fixPurchasing & Payablesofficial - Microsoftreviewed - checked by Opus

#14225 [Master]-Purchase Credit Memo – "Get Return Shipment Lines" fails for Non-Inventory items with "corrective credit memo can only reverse the original posted invoice" error (regression from Bug 636861)

Purchase credit memos can now retrieve return shipment lines for non-inventory items without triggering an error about corrective credit memos, fixing a regression.

Pull request · merged into main (BC30) on 2026-11-23 by neeleshsinghal · 21 files (+980 -0), 14 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Fixes the corrective credit memo error when using Get Return Shipment Lines for non-inventory items on purchase credit memos
  • Regression introduced by an earlier fix (Bug 636861)
  • Small addition to Purchase Line table logic in all affected localization layers
  • Tests added in the O365 Correct Purchase Invoice test codeunit
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#659750
  • Labels: Team: SCM
  • Systems: purchasing

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