Examples of IntAggregatedValues


Examples of org.projectforge.statistics.IntAggregatedValues

    }
  }

  private boolean setExpectedDateOfPayment(final LiquidityEntry entry, final Date dateOfInvoice, final String mapKey, final String area)
  {
    final IntAggregatedValues values = aggregatedDebitorInvoicesValuesMap.get(mapKey);
    if (values != null && values.getNumberOfValues() >= 1) {
      entry.setExpectedDateOfPayment(getDate(dateOfInvoice, values.getWeightedAverage()));
      entry.setComment(mapKey
          + ": "
          + area
          + ": "
          + values.getWeightedAverage()
          + " days ("
          + values.getNumberOfValues()
          + " paid invoices)");
      return true;
    } else {
      return false;
    }
View Full Code Here

Examples of org.projectforge.statistics.IntAggregatedValues

    }
  }

  private void ensureAndAddDebitorPaymentValue(final String mapId, final int timeForPayment, final int amount)
  {
    IntAggregatedValues values = aggregatedDebitorInvoicesValuesMap.get(mapId);
    if (values == null) {
      values = new IntAggregatedValues();
      aggregatedDebitorInvoicesValuesMap.put(mapId, values);
    }
    values.add(timeForPayment, amount);
  }
View Full Code Here

Examples of org.projectforge.statistics.IntAggregatedValues

  }

  private boolean setExpectedDateOfCreditorPayment(final LiquidityEntry entry, final Date dateOfInvoice, final String mapKey,
      final String area)
  {
    final IntAggregatedValues values = aggregatedCreditorInvoicesValuesMap.get(mapKey);
    if (values != null && values.getNumberOfValues() >= 1) {
      entry.setExpectedDateOfPayment(getDate(dateOfInvoice, values.getWeightedAverage()));
      entry.setComment(mapKey
          + ": "
          + area
          + ": "
          + values.getWeightedAverage()
          + " days ("
          + values.getNumberOfValues()
          + " paid invoices)");
      return true;
    } else {
      return false;
    }
View Full Code Here

Examples of org.projectforge.statistics.IntAggregatedValues

    }
  }

  private void ensureAndAddCreditorPaymentValue(final String mapId, final int timeForPayment, final int amount)
  {
    IntAggregatedValues values = aggregatedCreditorInvoicesValuesMap.get(mapId);
    if (values == null) {
      values = new IntAggregatedValues();
      aggregatedCreditorInvoicesValuesMap.put(mapId, values);
    }
    values.add(timeForPayment, amount);
  }
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.