---
id: change/bcapps/14225
type: change
title: '#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)'
summary: Purchase credit memos can now retrieve return shipment lines for non-inventory items without triggering an error about corrective credit memos, fixing a regression.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table purchase line
system: purchasing
review:
  state: reviewed
  by: opus
  at: "2026-11-24T01:03:36.869Z"
  flags: []
generated:
  at: "2026-12-01T00:17:57.990Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 1a1f0d80e83aa03645c29fb28c238090fd3ffa4e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14225
    title: 'microsoft/BCApps#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)'
    date: "2026-11-23"
    commit: 1a1f0d80e83aa03645c29fb28c238090fd3ffa4e
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/table/39
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/purchasing-how-process-purchase-returns-cancellations
      title: Process returns or cancellations
      label: possibly related
      why: Documents purchase credit memos and return shipment processing for non-inventory items.
      by: model
number: 14225
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14225
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-23T17:23:23Z"
author: neeleshsinghal
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 21
  additions: 980
  deletions: 0
  al: 14
apps:
  - Base Application
objects_touched:
  - key: table/39
    page: table/39
    type: table
    id: 39
    name: Purchase Line
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 659750
systems:
  - purchasing
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #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](https://github.com/microsoft/BCApps/pull/14225) · 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

- [Table 39 "Purchase Line"](../../objects/table/39.md), Base Application: modified

## Context

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

## Possibly related

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

- [Process returns or cancellations](https://learn.microsoft.com/dynamics365/business-central/purchasing-how-process-purchase-returns-cancellations) — possibly related: Documents purchase credit memos and return shipment processing for non-inventory items. (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).
