newSplit.setAmount(new Double(-amount));
trans.appendTransSplit(newSplit);
}
}
TransactionDAO transDAO = (TransactionDAO)factory.getDAO("transaction");
transDAO.store(trans, true);
factory.commit();
factory.close();
}
catch (Exception ex) {
System.out.println("Error with transaction: Payee" + trans.getPayee().getName() + "\n" +