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)); }
protected void recalc(Currency currency, List<Pay> collect) { for (Pay pay : collect) { Convert.recalculate(currency, pay); } }