}
currentAccount = null;
}
else if (qName.equalsIgnoreCase("gnc:transaction")) {
recordType = "";
TransactionDAO transactionDAO = (TransactionDAO)daoFactory.getDAO("transaction");
try {
//System.out.println("Transaction: " + currentTransaction.getTransactionID());
String where = "where TRANSACTION_ID = '" + currentTransaction.getTransactionID() + "'";
if (transactionDAO.load(where, null, true).size() == 0) {
Payee payee = PayeeUtils.findPayee(currentTransaction.getDescription(), true);
currentTransaction.setPayee(payee);
transactionDAO.create(currentTransaction, false);
if (this.eventListener != null)
this.eventListener.GNUCashEvent(new GNUCashEvent("Transaction: " + currentTransaction.getDescription() +
" Payee:" + payee.getName()));
}
else {
Payee payee = PayeeUtils.findPayee(currentTransaction.getDescription(), true);
currentTransaction.setPayee(payee);
transactionDAO.update(currentTransaction, false);
}
// create transaction splits
TransSplitDAO transSplitDAO = (TransSplitDAO)daoFactory.getDAO("transSplit");
try {