C# Class BudgetAnalyser.Engine.Ledger.ReconciliationManager

Inheritance: IReconciliationManager
显示文件 Open project: Benrnz/BudgetAnalyser Class Usage Examples

Public Methods

Method Description
MonthEndReconciliation ( LedgerBook ledgerBook, System.DateTime reconciliationDate, IBudgetCurrencyContext budgetContext, StatementModel statement, bool ignoreWarnings ) : ReconciliationResult
ReconciliationManager ( [ transactionRuleService, [ reconciliationConsistency, [ logger ) : System
TransferFunds ( TransferFundsCommand transferDetails, LedgerEntryLine ledgerEntryLine ) : void

Performs a funds transfer for the given ledger entry line.

ValidateAgainstOrphanedAutoMatchingTransactions ( LedgerBook ledgerBook, StatementModel statement ) : void

Examines the ledger book's most recent reconciliation looking for transactions waiting to be matched to transactions imported in the current month. If any transactions are found, the statement is then examined to see if the transactions appear, if they do not a new ValidationWarningException is thrown; otherwise the method returns.

Private Methods

Method Description
PerformBankTransfer ( TransferFundsCommand transferDetails, LedgerEntryLine ledgerEntryLine ) : void
PreReconciliationValidation ( LedgerBook ledgerBook, System.DateTime reconciliationDate, StatementModel statement ) : void
ShouldValidationExceptionBeRethrown ( bool ignoreWarnings, ValidationWarningException ex ) : bool
ValidateAgainstMissingTransactions ( System.DateTime reconciliationDate, StatementModel statement ) : void
ValidateAgainstUncategorisedTransactions ( System.DateTime startDate, System.DateTime reconciliationDate, StatementModel statement ) : void
ValidateDates ( LedgerBook ledgerBook, System.DateTime startDate, System.DateTime reconciliationDate, StatementModel statement ) : void

Method Details

MonthEndReconciliation() public method

public MonthEndReconciliation ( LedgerBook ledgerBook, System.DateTime reconciliationDate, IBudgetCurrencyContext budgetContext, StatementModel statement, bool ignoreWarnings ) : ReconciliationResult
ledgerBook LedgerBook
reconciliationDate System.DateTime
budgetContext IBudgetCurrencyContext
statement BudgetAnalyser.Engine.Statement.StatementModel
ignoreWarnings bool
return ReconciliationResult

ReconciliationManager() public method

public ReconciliationManager ( [ transactionRuleService, [ reconciliationConsistency, [ logger ) : System
transactionRuleService [
reconciliationConsistency [
logger [
return System

TransferFunds() public method

Performs a funds transfer for the given ledger entry line.
public TransferFunds ( TransferFundsCommand transferDetails, LedgerEntryLine ledgerEntryLine ) : void
transferDetails TransferFundsCommand
ledgerEntryLine LedgerEntryLine
return void

ValidateAgainstOrphanedAutoMatchingTransactions() public method

Examines the ledger book's most recent reconciliation looking for transactions waiting to be matched to transactions imported in the current month. If any transactions are found, the statement is then examined to see if the transactions appear, if they do not a new ValidationWarningException is thrown; otherwise the method returns.
public ValidateAgainstOrphanedAutoMatchingTransactions ( LedgerBook ledgerBook, StatementModel statement ) : void
ledgerBook LedgerBook
statement BudgetAnalyser.Engine.Statement.StatementModel
return void