C# Class BudgetAnalyser.Engine.Ledger.LedgerBook

Inheritance: IModelValidate
Exibir arquivo Open project: Benrnz/BudgetAnalyser Class Usage Examples

Public Methods

Method Description
LedgersAvailableForTransfer ( ) : IEnumerable

Lists all the Ledgers available for transfer funds to and from.

Validate ( [ validationMessages ) : bool

Validate the instance and populate any warnings and errors into the validationMessages string builder.

Private Methods

Method Description
AddLedger ( LedgerBucket newLedger ) : LedgerBucket
LedgerBook ( ) : System
LedgerBook ( [ reconciliationBuilder ) : System

Constructs a new instance of the LedgerBook class. The Persistence system calls this constructor, not the IoC system.

Reconcile ( System.DateTime reconciliationDate, BudgetModel budget, StatementModel statement ) : ReconciliationResult

Creates a new LedgerEntryLine for this LedgerBook.

SetLedgerAccount ( LedgerBucket ledger, Account storedInAccount ) : void

Used to allow the UI to set a ledger's account, but only if it is an instance in the Ledgers collection.

SetReconciliations ( List lines ) : void
UnlockMostRecentLine ( ) : LedgerEntryLine

Used to unlock the most recent LedgerEntryLine. Lines are locked as soon as they are saved after creation to prevent changes. Use with caution, this is intended to keep data integrity intact and prevent accidental changes. After financial records are completed for the month, they are not supposed to change.

Method Details

LedgersAvailableForTransfer() public method

Lists all the Ledgers available for transfer funds to and from.
public LedgersAvailableForTransfer ( ) : IEnumerable
return IEnumerable

Validate() public method

Validate the instance and populate any warnings and errors into the validationMessages string builder.
public Validate ( [ validationMessages ) : bool
validationMessages [ A non-null string builder that will be appended to for any messages.
return bool