Examples of KontoCache


Examples of org.projectforge.fibu.KontoCache

  public LiquidityForecast calculateExpectedTimeOfPayments(final Collection<RechnungDO> list)
  {
    if (list == null) {
      return this;
    }
    final KontoCache accountCache = Registry.instance().getKontoCache();
    for (final RechnungDO invoice : list) {
      final DayHolder date = new DayHolder(invoice.getDatum());
      final DayHolder dateOfPayment = new DayHolder(invoice.getBezahlDatum());
      if (date == null || dateOfPayment == null) {
        continue;
      }
      final int timeForPayment = date.daysBetween(dateOfPayment);
      final int amount = invoice.getGrossSum().intValue();
      // Store values for different groups:
      final Integer projectId = invoice.getProjektId();
      if (projectId != null) {
        ensureAndAddDebitorPaymentValue("project#" + projectId, timeForPayment, amount);
      }
      final Integer customerId = invoice.getKundeId();
      if (customerId != null) {
        ensureAndAddDebitorPaymentValue("customer#" + customerId, timeForPayment, amount);
      }
      final KontoDO account = accountCache.getKonto(invoice);
      final Integer accountId = account != null ? account.getId() : null;
      if (accountId != null) {
        ensureAndAddDebitorPaymentValue("account#" + accountId, timeForPayment, amount);
      }
      String customerText = invoice.getKundeText();
View Full Code Here

Examples of org.projectforge.fibu.KontoCache

    if (customer != null
        && setExpectedDateOfPayment(entry, dateOfInvoice, "customer#" + customer.getId(),
            KundeFormatter.formatKundeAsString(customer, null)) == true) {
      return;
    }
    final KontoCache accountCache = Registry.instance().getKontoCache();
    final KontoDO account = accountCache.getKonto(invoice);
    if (account != null
        && setExpectedDateOfPayment(entry, dateOfInvoice, "account#" + account.getId(),
            "" + account.getNummer() + " - " + account.getBezeichnung()) == true) {
      return;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.