private AnnualFinancialReportMonthEntry BuildReportEntry(TaxonTree currentTaxon) { var financialJournalEntries = _dispatcher.Fetch(new FinancialJournalQuery(_thatMonth) { Taxon = new TaxonTreeQuery { TaxonKey = currentTaxon.Key, Deep = currentTaxon.GetElements().Any() ? 0 : -1 } }); var subEntries = currentTaxon.GetElements() .Select(BuildReportEntry); return(AnnualFinancialReportMonthEntry.Create(currentTaxon, financialJournalEntries, subEntries)); }
public AnnualFinancialReportMonth GetReport(DateTime thatMonth) { _thatMonth = thatMonth; var entries = _taxon.GetElements() .Select(BuildReportEntry); return(AnnualFinancialReportMonth.Create(thatMonth, entries)); }