예제 #1
0
 protected override AccountValueInfo GetAccountValue(GncAccount account, int depth)
 {
     return(new AccountValueInfo
     {
         Amount = ConvertTo == null?account.GetBalanceWithSubaccounts(_date) : account.GetBalanceConverted(_date, true, ConvertTo),
     });
 }
예제 #2
0
        protected override void ProcessAccount(GncAccount acct, int depth)
        {
            var earliest = acct.Book.EarliestDate;

            foreach (var interval in EnumIntervals())
            {
                var bal = ConvertTo == null?acct.GetBalanceWithSubaccounts(interval.End) : acct.GetBalanceConverted(interval.End, true, ConvertTo);

                if (Negate)
                {
                    bal.NegateInplace();
                }

                SetReportAmount(Report, acct, interval, bal, ConvertTo != null);
            }
        }