---
title: "Codeunit 108 Net Cust/Vend Balances Mgt."
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/108-net-cust-vend-balances-mgt/
type: codeunit
id: 108
name: "Net Cust/Vend Balances Mgt."
app: "Base Application"
namespace: Microsoft.Finance.ReceivablesPayables
versions: "20-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/108-net-cust-vend-balances-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 108 Net Cust/Vend Balances Mgt.

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/108-net-cust-vend-balances-mgt/

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| NetCustVendBalances | (var Record Vendor, Record Net Balances Parameters) | - | public | 20-28 | - | - |
| SetGenJnlLine | (Record Gen. Journal Line) | - | public | 20-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterInitGenJnlLine | (var Record Gen. Journal Line, Record Vendor Ledger Entry) | 21-28 | - | - |
| Integration event | OnAfterFillGenJnlLineFromCustLedgEntry | (var Record Gen. Journal Line, Record Cust. Ledger Entry) | 21-28 | - | - |
| Integration event | OnAfterFillGenJnlLineFromVendLedgEntry | (var Record Gen. Journal Line, Record Vendor Ledger Entry) | 21-28 | - | - |
| Integration event | OnCalcPartNetAmountAfterSetDocumentType | (var Record Vendor Ledger Entry, var Record Cust. Ledger Entry, var Decimal, var Decimal, Enum Gen. Journal Document Type, var Boolean) | 25-28 | - | - |
| Integration event | OnFillGenJnlLineFromCustledgEntryBeforeValidateAmount | (var Record Cust. Ledger Entry) | 25-28 | - | - |
| Integration event | OnFillGenJnlLineFromVendLedgEntryBeforeValidateAmount | (var Record Vendor Ledger Entry) | 25-28 | - | - |
| Integration event | OnNetBalancesBeforeSetCustomerRemainingAmount | (var Record Cust. Ledger Entry) | 25-28 | - | - |
| Integration event | OnNetBalancesBeforeSetVendorRemainingAmount | (var Record Vendor Ledger Entry) | 25-28 | - | - |
| Integration event | OnSumCustomerRemainingAmountBeforeCalcResult | (var Record Cust. Ledger Entry, var Decimal, var Boolean) | 25-28 | - | - |
| Integration event | OnSumVendorRemainingAmountBeforeCalcResult | (var Record Vendor Ledger Entry, var Decimal, var Boolean) | 25-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.
