C# Класс BudgetAnalyser.Engine.Ledger.LedgerEntry

A single entry on a LedgerColumn for a date (which comes from the LedgerEntryLine). This instance can contain one or more LedgerTransactions defining all movements for this BudgetBucket for this date. Possible transactions include budgeted 'saved up for expenses' credited into this LedgerColumn and all statement transactions that are debitted to this budget bucket ledger.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ToString ( ) : string

Returns a string that represents the current object.

Приватные методы

Метод Описание
AddTransaction ( [ newTransaction ) : void

Used for persistence only. Don't use during Reconciliation.

LedgerEntry ( ) : System

Used only by persistence.

LedgerEntry ( bool isNew ) : System

Used when adding a new entry for a new reconciliation.

Lock ( ) : void
RemoveTransaction ( System.Guid transactionId ) : void
SetTransactionsForReconciliation ( List newTransactions, System.DateTime reconciliationDate ) : void

Called by LedgerBook.Reconcile. Sets up this new Entry with transactions. AddTransaction must not be called in conjunction with this. This is used for reconciliation only. Also performs some automated actions: + Transfers to Surplus any remaining amount for Spent Monthly Buckets. + Transfers from Surplus any overdrawn amount for Spent Monthly Buckets.

Unlock ( ) : void
Validate ( System.StringBuilder validationMessages, decimal openingBalance ) : bool

Описание методов

ToString() публичный Метод

Returns a string that represents the current object.
public ToString ( ) : string
Результат string