the single account row without an amount has its amount set and this should
not reflect the data in the model which may be re-displayed if when the
save is unsuccessful
LedgerTransactionAccount emptyAmountAccount = null;
float emptyAmountAccountBalance = 0;
for (int i = 0; i < viewModel.getAccountCount(); i++) {
- LedgerTransactionAccount acc = viewModel.getAccount(i);
+ LedgerTransactionAccount acc =
+ new LedgerTransactionAccount(viewModel.getAccount(i));
if (acc.getAccountName()
.trim()
.isEmpty())