C# Class BudgetAnalyser.Engine.Ledger.SurplusLedger

A special system ledger bucket to represent surplus funds available for surplus spending in the Ledger Book.
Inheritance: LedgerBucket
Show file Open project: Benrnz/BudgetAnalyser Class Usage Examples

Public Methods

Method Description
ApplyReconciliationBehaviour ( IList transactions, System.DateTime reconciliationDate, decimal openingBalance ) : void

Allows ledger bucket specific behaviour during reconciliation.

SurplusLedger ( ) : System

Initializes a new instance of the SurplusLedger class.

Protected Methods

Method Description
ValidateBucketSet ( BudgetBucket bucket ) : void

Validates the bucket provided is valid for use with this LedgerBucket. There is an explicit relationship between BudgetBuckets and LedgerBuckets.

Method Details

ApplyReconciliationBehaviour() public method

Allows ledger bucket specific behaviour during reconciliation.
public ApplyReconciliationBehaviour ( IList transactions, System.DateTime reconciliationDate, decimal openingBalance ) : void
transactions IList
reconciliationDate System.DateTime
openingBalance decimal
return void

SurplusLedger() public method

Initializes a new instance of the SurplusLedger class.
public SurplusLedger ( ) : System
return System

ValidateBucketSet() protected method

Validates the bucket provided is valid for use with this LedgerBucket. There is an explicit relationship between BudgetBuckets and LedgerBuckets.
/// Invalid budget bucket used, only the Surplus bucket can be used with an /// instance of Surplus-Ledger. ///
protected ValidateBucketSet ( BudgetBucket bucket ) : void
bucket BudgetAnalyser.Engine.Budget.BudgetBucket
return void