- String dateString = cTr.getString(0);
- try {
- date = Globals.parseLedgerDate(dateString);
- }
- catch (ParseException e) {
- e.printStackTrace();
- throw new RuntimeException(
- String.format("Error parsing date '%s' from " + "transaction %d",
- dateString, id));
- }
- description = cTr.getString(1);
- comment = cTr.getString(2);
+ date = new SimpleDate(cTr.getInt(0), cTr.getInt(1), cTr.getInt(2));
+ description = cTr.getString(3);
+ comment = cTr.getString(4);
+
+ accounts.clear();