---
id: change/bcapps/10611
type: change
title: "#10611 [main]- Bug 647007 Copy Document on a Purchase Credit Memo 'Quantity Received', and 'Quantity Invoiced' reverted back on original Purchase Order"
summary: Posting a purchase credit memo created with Copy Document from a posted invoice no longer reverts the received and invoiced quantities on the original purchase order. GetPurchaseInvoiceLine now skips the Order No./Order Line No. fallback for inventory item lines without a linked item ledger entry.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table purch. cr. memo line
system: purchasing
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:07:27.278Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 82b6735b089a80b196b7ccd0c4e6512baf8710c1
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10611
    title: "microsoft/BCApps#10611: [main]- Bug 647007 Copy Document on a Purchase Credit Memo 'Quantity Received', and 'Quantity Invoiced' reverted back on original Purchase Order"
    date: "2026-08-27"
    commit: 82b6735b089a80b196b7ccd0c4e6512baf8710c1
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/table/125
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10611
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10611
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-27T15:12:28Z"
author: MSNehaNawal
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 18
  additions: 521
  deletions: 16
  al: 11
apps:
  - Base Application
objects_touched:
  - key: table/125
    page: table/125
    type: table
    id: 125
    name: Purch. Cr. Memo Line
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 647007
systems:
  - purchasing
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10611 [main]- Bug 647007 Copy Document on a Purchase Credit Memo 'Quantity Received', and 'Quantity Invoiced' reverted back on original Purchase Order

> Posting a purchase credit memo created with Copy Document from a posted invoice no longer reverts the received and invoiced quantities on the original purchase order. GetPurchaseInvoiceLine now skips the Order No./Order Line No. fallback for inventory item lines without a linked item ledger entry.

[Pull request](https://github.com/microsoft/BCApps/pull/10611) · merged into `main` (BC30) on 2026-08-27 by MSNehaNawal · 18 files (+521 -16), 11 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- The Purchase Cr. Memo Line table gains logic to detect whether a credit memo is corrective or merely copied
- Posting a copied credit memo no longer reverts the source purchase order line quantities
- Corrective credit memos with item ledger entry links continue to work as designed
- Added test cases to verify quantities remain correct after posting copied credit memos
- The fix applies across all localization layers (W1, NA, BE, ES, FI, GB, IT, NO, RU, SE, APAC)
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 125 "Purch. Cr. Memo Line"](../../objects/table/125.md), Base Application: modified

## Context

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

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