---
id: change/bcapps/14879
type: change
title: "#14879 Purchases: Restore order quantities when posting a corrective credit memo from the list"
summary: Posting a corrective purchase credit memo from the Purchase Credit Memos list now properly restores order quantities when that setting is enabled, matching the behavior of posting from the card.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - page purchase credit memos
system: purchasing
review:
  state: reviewed
  by: opus
  at: "2026-12-05T01:02:38.263Z"
  flags: []
generated:
  at: "2026-12-06T00:14:19.053Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 392382925aae6aa3ae5b69875e3affb61e47185f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14879
    title: "microsoft/BCApps#14879: Purchases: Restore order quantities when posting a corrective credit memo from the list"
    date: "2026-12-04"
    commit: 392382925aae6aa3ae5b69875e3affb61e47185f
    t: null
    quote: The list now calls it after posting, as the Sales Credit Memos list already does for sales.
links:
  learn: []
  objects:
    - object/page/9309
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/SRB/sales/credit-memo-cancellation
      title: Credit memos and cancellation
      label: possibly related
      why: Documents credit memo handling and corrective credit memo processing for purchase orders.
      by: model
number: 14879
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14879
kind: pr
base_branch: main
major: "30"
merged_at: "2026-12-04T17:22:14Z"
author: alexei-dobriansky
author_type: User
community_contribution: false
labels:
  - Engineering Factory
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 129
  deletions: 0
  al: 2
apps:
  - Base Application
objects_touched:
  - key: page/9309
    page: page/9309
    type: page
    id: 9309
    name: Purchase Credit Memos
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/NA/BaseApp/Purchases/Document/PurchaseCreditMemos.Page.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 661730
systems:
  - purchasing
quote: The list now calls it after posting, as the Sales Credit Memos list already does for sales.
joined_against:
  major: "30"
  commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
---

# #14879 Purchases: Restore order quantities when posting a corrective credit memo from the list

> Posting a corrective purchase credit memo from the Purchase Credit Memos list now properly restores order quantities when that setting is enabled, matching the behavior of posting from the card.

[Pull request](https://github.com/microsoft/BCApps/pull/14879) · merged into `main` (BC30) on 2026-12-04 by alexei-dobriansky · 3 files (+129 -0), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- List page posting now calls UpdatePurchaseOrderLineIfExist after posting, as card and job queue posting already do
- Posting from the list previously left Quantity Received and Quantity Invoiced unchanged on the originating order
- This mirrors the Sales Credit Memos list. Credit memos only scheduled for job queue posting are skipped
- The change is applied to both the W1 and NA copies of the page
- New tests cover list and card posting, and the case where the setting is disabled
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 9309 "Purchase Credit Memos"](../../objects/page/9309.md), Base Application: modified
- `src/Layers/NA/BaseApp/Purchases/Document/PurchaseCreditMemos.Page.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#661730
- Labels: Engineering Factory, Team: SCM
- Systems: purchasing
- From the description: "The list now calls it after posting, as the Sales Credit Memos list already does for sales."

## Possibly related

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

- [Credit memos and cancellation](https://learn.microsoft.com/dynamics365/business-central/SRB/sales/credit-memo-cancellation) — possibly related: Documents credit memo handling and corrective credit memo processing for purchase orders. (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).
