static LiquidityForecast getForecast(final RechnungDao rechnungDao, final EingangsrechnungDao eingangsrechnungDao,
final LiquidityEntryDao liquidityEntryDao)
{
final LiquidityForecast forecast = new LiquidityForecast();
// Consider only invoices of the last year:
final java.sql.Date fromDate = new DayHolder().add(Calendar.DAY_OF_YEAR, -365).getSQLDate();
{
final List<RechnungDO> paidInvoices = rechnungDao.getList(new RechnungFilter().setShowBezahlt().setFromDate(fromDate));
forecast.calculateExpectedTimeOfPayments(paidInvoices);
final List<RechnungDO> invoices = rechnungDao.getList(new RechnungFilter().setShowUnbezahlt());
forecast.setInvoices(invoices);