Package org.projectforge.fibu

Examples of org.projectforge.fibu.RechnungFilter


  }

  protected void exportExcelWithCostAssignments()
  {
    refresh();
    final RechnungFilter filter = new RechnungFilter();
    final RechnungFilter src = form.getSearchFilter();
    filter.setYear(src.getYear());
    filter.setMonth(src.getMonth());
    final List<EingangsrechnungDO> rechnungen = eingangsrechnungDao.getList(filter);
    if (rechnungen == null || rechnungen.size() == 0) {
      // Nothing to export.
      form.addError("validation.error.nothingToExport");
      return;
View Full Code Here


  }

  protected void exportExcelWithCostAssignments()
  {
    refresh();
    final RechnungFilter filter = new RechnungFilter();
    final RechnungFilter src = form.getSearchFilter();
    filter.setYear(src.getYear());
    filter.setMonth(src.getMonth());
    final List<RechnungDO> rechnungen = rechnungDao.getList(filter);
    if (rechnungen == null || rechnungen.size() == 0) {
      // Nothing to export.
      form.addError("validation.error.nothingToExport");
      return;
View Full Code Here

  {
    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);
    }
    {
      final List<EingangsrechnungDO> paidInvoices = eingangsrechnungDao
          .getList(new RechnungFilter().setShowBezahlt().setFromDate(fromDate));
      forecast.calculateExpectedTimeOfCreditorPayments(paidInvoices);
      final List<EingangsrechnungDO> creditorInvoices = eingangsrechnungDao.getList(new RechnungFilter()
      .setListType(RechnungFilter.FILTER_UNBEZAHLT));
      forecast.setCreditorInvoices(creditorInvoices);
    }
    final List<LiquidityEntryDO> list = liquidityEntryDao.getList(new LiquidityFilter().setPaymentStatus(PaymentStatus.UNPAID));
    forecast.set(list);
View Full Code Here

TOP

Related Classes of org.projectforge.fibu.RechnungFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.