---
title: "Codeunit 441 Prepayment Mgt."
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/441-prepayment-mgt/
type: codeunit
id: 441
name: "Prepayment Mgt."
app: "Base Application"
namespace: Microsoft.Finance.ReceivablesPayables
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/441-prepayment-mgt/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 441 Prepayment Mgt.

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/441-prepayment-mgt/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Finance.ReceivablesPayables |
| Versions | 17-28 |
| Source file | Finance/ReceivablesPayables/PrepaymentMgt.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| AssertPrepmtAmountNotMoreThanDocAmount | (Decimal, Decimal, Code[10], Boolean) | - | public | 17-28 | - | - |
| SetSalesPrepaymentPct | (var Record Sales Line, Date) | - | public | 17-28 | - | - |
| SetPurchPrepaymentPct | (var Record Purchase Line, Date) | - | public | 17-28 | - | - |
| TestSalesPrepayment | (Record Sales Header) | Boolean | public | 17-28 | - | - |
| TestPurchasePrepayment | (Record Purchase Header) | Boolean | public | 17-28 | - | - |
| TestSalesPayment | (Record Sales Header) | Boolean | public | 17-28 | - | - |
| TestPurchasePayment | (Record Purchase Header) | Boolean | public | 17-28 | - | - |
| UpdatePendingPrepaymentSales | () | - | public | 17-28 | - | - |
| UpdatePendingPrepaymentPurchase | () | - | public | 17-28 | - | - |
| CreateAndStartJobQueueEntrySales | (Option) | - | public | 17-28 | - | - |
| CreateAndStartJobQueueEntryPurchase | (Option) | - | public | 17-28 | - | - |
| CreateAndStartJobQueueEntry | (Integer, Option, Text) | - | public | 17-28 | - | - |
| TestSalesOrderLineForGetShptLines | (Record Sales Line) | - | public | 18-28 | - | - |
| TestPurchaseOrderLineForGetRcptLines | (Record Purchase Line) | - | public | 18-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeTestSalesPrepayment | (Record Sales Header, var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeTestPurchPrepayment | (Record Purchase Header, var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeTestSalesPayment | (Record Sales Header, var Boolean, var Boolean) | 17-20 | - | - |
| Integration event | OnBeforeTestPurchasePayment | (Record Purchase Header, var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnTestSalesPaymentOnBeforeCustLedgerEntrySetFilter | (var Record Cust. Ledger Entry, Record Sales Header, Record Sales Invoice Header) | 17-28 | - | - |
| Integration event | OnTestPurchasePaymentOnBeforeVendLedgerEntrySetFilter | (var Record Vendor Ledger Entry, Record Purchase Header, Record Purch. Inv. Header) | 17-28 | - | - |
| Integration event | OnBeforeSetSalesPrepaymentPct | (var Record Sales Line, Date, var Boolean) | 18-28 | - | - |
| Integration event | OnBeforeTestSalesOrderLineForGetShptLines | (Record Sales Line, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeTestPurchaseOrderLineForGetRcptLines | (Record Purchase Line, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeTestSalesPayment | (var Record Sales Header, var Boolean, var Boolean) | 21-28 | - | - |
| Integration event | OnBeforeUpdatePendingPrepaymentSales | (var Record Sales Header) | 28 | - | - |
| Integration event | OnAfterUpdatePendingPrepaymentSales | (var Record Sales Header) | 28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
