---
id: change/bcapps/10172
type: change
title: "#10172 [Extensibility Request] issue 30111: add purchase prepayment update events"
summary: Three integration events are added to the purchase prepayment line update procedure, allowing extensions to adjust line selection, handle missing-lines errors, and modify custom fields before each line update.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit purchase-post prepayments
system: purchasing
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:07:26.119Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 5490460e7c292cc380813be089c93c2da8ce234d
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10172
    title: "microsoft/BCApps#10172: [Extensibility Request] issue 30111: add purchase prepayment update events"
    date: "2026-08-27"
    commit: 5490460e7c292cc380813be089c93c2da8ce234d
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/444
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10172
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10172
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-27T22:37:41Z"
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: 6
  additions: 144
  deletions: 12
  al: 6
apps:
  - Base Application
objects_touched:
  - key: codeunit/444
    page: codeunit/444
    type: codeunit
    id: 444
    name: Purchase-Post Prepayments
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/ES/BaseApp/Purchases/Posting/PurchasePostPrepayments.Codeunit.al
    status: modified
    reason: not-in-snapshot
  - path: src/Layers/NL/BaseApp/Purchases/Posting/PurchasePostPrepayments.Codeunit.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 640956
systems:
  - purchasing
quote: null
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #10172 [Extensibility Request] issue 30111: add purchase prepayment update events

> Three integration events are added to the purchase prepayment line update procedure, allowing extensions to adjust line selection, handle missing-lines errors, and modify custom fields before each line update.

[Pull request](https://github.com/microsoft/BCApps/pull/10172) · merged into `main` (BC30) on 2026-08-27 by AleksandricMarko · 6 files (+144 -12), 6 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Event fired after filters are set on prepayment lines
- Event fired before the standard no-lines-found error is raised
- Event fired before each line modification occurs
- Extensions can override standard behavior when subscribing
- Changes applied across all regional layers (W1, NA, APAC, ES, IT, NL)

## AL objects touched

- [Codeunit 444 "Purchase-Post Prepayments"](../../objects/codeunit/444.md), Base Application: modified
- `src/Layers/ES/BaseApp/Purchases/Posting/PurchasePostPrepayments.Codeunit.al`: modified, not in the BC30 snapshot
- `src/Layers/NL/BaseApp/Purchases/Posting/PurchasePostPrepayments.Codeunit.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#640956
- Labels: Team: SCM, event-request
- 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).
