---
id: change/bcapps/9416
type: change
title: '#9416 [ALAppExtensions #30313]codeunit 441 "Prepayment Mgt."  OnBeforeReleaseSalesDocument'
summary: Codeunit 441 now exposes two new integration events that fire before and after processing pending prepayment sales, allowing partners to hook into the prepayment-driven release flow.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit prepayment mgt.
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:12:17.212Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: c87a1a0887b2e37f3fab764223102ede70448e69
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9416
    title: 'microsoft/BCApps#9416: [ALAppExtensions #30313]codeunit 441 "Prepayment Mgt."  OnBeforeReleaseSalesDocument'
    date: "2026-07-16"
    commit: c87a1a0887b2e37f3fab764223102ede70448e69
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/441
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9416
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9416
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-16T11:34:41Z"
author: Explorer986
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 1
  additions: 20
  deletions: 0
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/441
    page: codeunit/441
    type: codeunit
    id: 441
    name: Prepayment Mgt.
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 641536
systems:
  - finance
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9416 [ALAppExtensions #30313]codeunit 441 "Prepayment Mgt."  OnBeforeReleaseSalesDocument

> Codeunit 441 now exposes two new integration events that fire before and after processing pending prepayment sales, allowing partners to hook into the prepayment-driven release flow.

[Pull request](https://github.com/microsoft/BCApps/pull/9416) · merged into `main` (BC30) on 2026-07-16 by Explorer986 · 1 file (+20 -0), 1 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Added OnBeforeUpdatePendingPrepaymentSales and OnAfterUpdatePendingPrepaymentSales events
- Events wrap the existing sales processing loop in UpdatePendingPrepaymentSales()
- Provides a specific signal for prepayment-driven release distinct from generic release events
- Includes XML documentation matching existing codeunit style
- No behavior changes when unsubscribed

## AL objects touched

- [Codeunit 441 "Prepayment Mgt."](../../objects/codeunit/441.md), Base Application: modified

## Context

- Work items: AB#641536
- Labels: Team: Finance
- Systems: finance

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