Exemplo n.º 1
0
            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));
            }
Exemplo n.º 2
0
            public AnnualFinancialReportMonth GetReport(DateTime thatMonth)
            {
                _thatMonth = thatMonth;

                var entries = _taxon.GetElements()
                              .Select(BuildReportEntry);

                return(AnnualFinancialReportMonth.Create(thatMonth, entries));
            }