Codeunit "Calc. Running Acc. Balance"

ID 105
Namespace: Microsoft.Bank.Ledger

Calculates running account balances for bank account ledger entries with optimized caching. Provides efficient balance calculations for both local and foreign currency amounts by maintaining daily totals and entry-specific balance caches to avoid repetitive database queries.

Properties

Name Value
InherentPermissions X

Methods

GetBankAccBalance

Calculates the running balance for a bank account ledger entry in the original currency. Uses cached daily totals and entry-specific values to optimize performance for repeated calls.

procedure GetBankAccBalance(var BankAccountLedgerEntry: Record "Bank Account Ledger Entry"): Decimal

Parameters

Name Type Description
BankAccountLedgerEntry Table Microsoft.Bank.Ledger."Bank Account Ledger Entry"

Bank account ledger entry to calculate running balance for.

Returns

Type Description
Decimal

Running balance in the original currency at the time of the entry.

GetBankAccBalanceLCY

Calculates the running balance for a bank account ledger entry in local currency (LCY). Uses cached daily totals and entry-specific values to optimize performance for repeated calls.

procedure GetBankAccBalanceLCY(var BankAccountLedgerEntry: Record "Bank Account Ledger Entry"): Decimal

Parameters

Name Type Description
BankAccountLedgerEntry Table Microsoft.Bank.Ledger."Bank Account Ledger Entry"

Bank account ledger entry to calculate running balance for.

Returns

Type Description
Decimal

Running balance in local currency (LCY) at the time of the entry.

See also