---
id: change/bcapps/10171
type: change
title: "#10171 [Extensibility Request] issue 30110: add prepayment update events"
summary: Sales prepayment posting now exposes two integration events that allow extensions to customize which lines are included in redistribution and modify each line before persistence without duplicating standard logic.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit sales-post prepayments
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:08:53.609Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: a75a8f4be7fc65bd493385860e597b7ae7d2204a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10171
    title: "microsoft/BCApps#10171: [Extensibility Request] issue 30110: add prepayment update events"
    date: "2026-08-16"
    commit: a75a8f4be7fc65bd493385860e597b7ae7d2204a
    t: null
    quote: Extensions need targeted hooks to adjust which sales lines participate in prepayment redistribution and to customize each updated line without duplicating the standard procedure.
links:
  learn: []
  objects:
    - object/codeunit/442
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10171
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10171
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-16T21:56:04Z"
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: 225
  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:
  - 640955
systems:
  - sales
quote: Extensions need targeted hooks to adjust which sales lines participate in prepayment redistribution and to customize each updated line without duplicating the standard procedure.
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #10171 [Extensibility Request] issue 30110: add prepayment update events

> Sales prepayment posting now exposes two integration events that allow extensions to customize which lines are included in redistribution and modify each line before persistence without duplicating standard logic.

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

## What changed

- Added filter-adjustment event to let extensions customize line selection for prepayment redistribution
- Added before-modify event that fires before each updated sales line is persisted
- Events preserve existing behavior when no subscribers are present
- Changes applied to W1 base and all localization layers (APAC, BE, CH, ES, FI, IT, NA, NL)
- Enables targeted hooks for prepayment adjustments without code duplication

## 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#640955
- Labels: Team: SCM, event-request
- Systems: sales
- From the description: "Extensions need targeted hooks to adjust which sales lines participate in prepayment redistribution and to customize each updated line without duplicating the standard procedure."

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