Пример #1
0
  private void recalcTotal() {

    double sum = pays.get(0).getBalance();
    summa.setText(Convert.money(sum));

    double allPa = getAllPays();
    allPays.setText(Convert.money(allPa));
    overpay.setText(Convert.money(allPa - sum));
  }
Пример #2
0
  protected void recalc(Currency currency, List<Pay> collect) {

    for (Pay pay : collect) {
      Convert.recalculate(currency, pay);
    }
  }