---
id: change/bcapps/10123
type: change
title: "#10123 [Extensibility Request] issue 30401: add credit memo sales line filter event"
summary: An integration event OnUpdateSalesDocumentOnBeforeFindSetCreditMemoSalesLine was added to the Sales-Post Prepayments codeunit, allowing extensions to filter credit memo sales lines during prepayment document processing.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit sales-post prepayments
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:09:00.529Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: cac3b904177b03457d01942099c208b2dc78f3b7
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10123
    title: "microsoft/BCApps#10123: [Extensibility Request] issue 30401: add credit memo sales line filter event"
    date: "2026-08-14"
    commit: cac3b904177b03457d01942099c208b2dc78f3b7
    t: null
    quote: Extensions need to refine which credit memo sales lines are processed when a prepayment document updates the originating sales document.
links:
  learn: []
  objects:
    - object/codeunit/442
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10123
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10123
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-14T12:07:31Z"
author: AleksandricMarko
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
  - event-request
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 9
  additions: 99
  deletions: 0
  al: 9
apps:
  - Base Application
objects_touched:
  - key: codeunit/442
    page: codeunit/442
    type: codeunit
    id: 442
    name: Sales-Post Prepayments
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/BE/BaseApp/Sales/Posting/SalesPostPrepayments.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/CH/BaseApp/Sales/Posting/SalesPostPrepayments.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/ES/BaseApp/Sales/Posting/SalesPostPrepayments.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/NL/BaseApp/Sales/Posting/SalesPostPrepayments.Codeunit.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 646144
systems:
  - sales
quote: Extensions need to refine which credit memo sales lines are processed when a prepayment document updates the originating sales document.
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #10123 [Extensibility Request] issue 30401: add credit memo sales line filter event

> An integration event OnUpdateSalesDocumentOnBeforeFindSetCreditMemoSalesLine was added to the Sales-Post Prepayments codeunit, allowing extensions to filter credit memo sales lines during prepayment document processing.

[Pull request](https://github.com/microsoft/BCApps/pull/10123) · merged into `main` (BC30) on 2026-08-14 by AleksandricMarko · 9 files (+99 -0), 9 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- New integration event fires before credit memo lines are queried
- Extensions can add custom filters while preserving existing prepayment logic
- Event added to all localization layers (W1, BE, CH, ES, FI, IT, APAC, NA, NL)

## AL objects touched

- [Codeunit 442 "Sales-Post Prepayments"](../../objects/codeunit/442.md), Base Application: modified
- `src/Layers/BE/BaseApp/Sales/Posting/SalesPostPrepayments.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/CH/BaseApp/Sales/Posting/SalesPostPrepayments.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/ES/BaseApp/Sales/Posting/SalesPostPrepayments.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/NL/BaseApp/Sales/Posting/SalesPostPrepayments.Codeunit.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#646144
- Labels: Team: SCM, event-request
- Systems: sales
- From the description: "Extensions need to refine which credit memo sales lines are processed when a prepayment document updates the originating sales document."

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