public decimal GetCreditBalance(IProcessableTAccount account)
        {
            var debit  = this.GetDebitSum(account);
            var credit = this.GetCreditSum(account);

            return(credit - debit);
        }
        public decimal GetDebitSum(IProcessableTAccount account)
        {
            var result = 0.00M;

            foreach (var e in account.Entries)
            {
                if (e.Type == TAccount_EntryType.Debit)
                {
                    result += e.Amount;
                }
            }
            return(result);
        }