protected override AccountValueInfo GetAccountValue(GncAccount account, int depth) { return(new AccountValueInfo { Amount = ConvertTo == null?account.GetBalanceWithSubaccounts(_date) : account.GetBalanceConverted(_date, true, ConvertTo), }); }
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); } }