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

#14429 [29.x]-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)

Using 'Get Return Shipment Lines' on a purchase credit memo no longer fails for non-inventory items with the error that a corrective credit memo can only reverse the original posted invoice. This fixes a regression introduced by Bug 636861.

Pull request · merged into releases/29.x (BC29) on 2026-11-26 by neeleshsinghal (community contribution) · 21 files (+980 -0), 14 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • ‘Get Return Shipment Lines’ on purchase credit memos works again for non-inventory items
  • Removes the wrongly raised ‘corrective credit memo can only reverse the original posted invoice’ error
  • Fixes a regression introduced by the fix for Bug 636861
  • The Purchase Line table is changed in W1 and all country layers
  • Tests added to O365 Correct Purchase Invoice in several layers
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#660363
  • Labels: ADO: Sync, From Fork, 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).