C# Class 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.
Afficher le fichier Open project: Benrnz/BudgetAnalyser Class Usage Examples

Méthodes publiques

Méthode Description
ToString ( ) : string

Returns a string that represents the current object.

Private Methods

Méthode Description
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

Method Details

ToString() public méthode

Returns a string that represents the current object.
public ToString ( ) : string
Résultat string