---
id: change/bcapps/10902
type: change
title: "#10902 [Extensibility Request] issue 30424: add prepayment update event"
summary: A handled integration event was added to allow extensions to control prepayment amount updates when correcting posted sales invoices.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit correct posted sales invoice
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:06:37.215Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: ff1f74284638bfb293973bd2019382665b3df4c7
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10902
    title: "microsoft/BCApps#10902: [Extensibility Request] issue 30424: add prepayment update event"
    date: "2026-09-02"
    commit: ff1f74284638bfb293973bd2019382665b3df4c7
    t: null
    quote: Extensions need a supported way to prevent sales order prepayment amounts from being restored when correcting a posted sales invoice.
links:
  learn: []
  objects:
    - object/codeunit/1303
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10902
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10902
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-02T13:26:54Z"
author: AleksandricMarko
author_type: User
community_contribution: false
labels:
  - SCM
  - "Team: SCM"
  - event-request
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 3
  additions: 57
  deletions: 0
  al: 3
apps:
  - Base Application
objects_touched:
  - key: codeunit/1303
    page: codeunit/1303
    type: codeunit
    id: 1303
    name: Correct Posted Sales Invoice
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/ES/BaseApp/Sales/History/CorrectPostedSalesInvoice.Codeunit.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 648506
systems:
  - sales
quote: Extensions need a supported way to prevent sales order prepayment amounts from being restored when correcting a posted sales invoice.
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #10902 [Extensibility Request] issue 30424: add prepayment update event

> A handled integration event was added to allow extensions to control prepayment amount updates when correcting posted sales invoices.

[Pull request](https://github.com/microsoft/BCApps/pull/10902) · merged into `main` (BC30) on 2026-09-02 by AleksandricMarko · 3 files (+57 -0), 3 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Handled integration event added in UpdateSalesOrderLinePrepmtAmount, before prepayment amounts are updated
- Fires after currency initialization in the Correct Posted Sales Invoice codeunit
- Subscribers can set it as handled to skip the standard prepayment amount updates
- Added in the W1, APAC and ES layers

## AL objects touched

- [Codeunit 1303 "Correct Posted Sales Invoice"](../../objects/codeunit/1303.md), Base Application: modified
- `src/Layers/ES/BaseApp/Sales/History/CorrectPostedSalesInvoice.Codeunit.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#648506
- Labels: SCM, Team: SCM, event-request
- Systems: sales
- From the description: "Extensions need a supported way to prevent sales order prepayment amounts from being restored when correcting a posted sales invoice."

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