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

A Ledger Bucket that does not allow funds to accumulate at the end of the month. Any excess funds if not spent, will be transfered to Surplus.
Наследование: LedgerBucket
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ApplyReconciliationBehaviour ( IList transactions, System.DateTime reconciliationDate, decimal openingBalance ) : void

Allows ledger bucket specific behaviour during reconciliation.

Защищенные методы

Метод Описание
ValidateBucketSet ( BudgetBucket bucket ) : void

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

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

Метод Описание
RemoveExcessToBudgetAmount ( decimal closingBalance, System.DateTime reconciliationDate, decimal budgetAmount ) : LedgerTransaction
RemoveExcessToOpeningBalance ( decimal closingBalance, System.DateTime reconciliationDate, decimal openingBalance ) : LedgerTransaction
SupplementToBudgetAmount ( decimal closingBalance, System.DateTime reconciliationDate, decimal budgetAmount ) : LedgerTransaction
SupplementToOpeningBalance ( decimal closingBalance, System.DateTime reconciliationDate, decimal openingBalance ) : LedgerTransaction
SupplementToZero ( decimal closingBalance, System.DateTime reconciliationDate ) : CreditLedgerTransaction

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

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

Allows ledger bucket specific behaviour during reconciliation.
public ApplyReconciliationBehaviour ( IList transactions, System.DateTime reconciliationDate, decimal openingBalance ) : void
transactions IList
reconciliationDate System.DateTime
openingBalance decimal
Результат void

ValidateBucketSet() защищенный Метод

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 Spent-Monthly-Expense-Bucket can be /// used with an instance of Spent-Monthly-Ledger. ///
protected ValidateBucketSet ( BudgetBucket bucket ) : void
bucket BudgetAnalyser.Engine.Budget.BudgetBucket
Результат void