- int transaction_id = cursor.getInt(0);
- String dateString = cursor.getString(1);
- Calendar date = Globals.parseLedgerDateAsCalendar(dateString);
-
- if (!lastDateString.equals(dateString)) {
- boolean showMonth =
- (date.get(Calendar.MONTH) != lastDate.get(Calendar.MONTH)) ||
- (date.get(Calendar.YEAR) != lastDate.get(Calendar.YEAR));
- newList.add(new TransactionListItem(date.getTime(), showMonth));
- }
- newList.add(
- new TransactionListItem(new LedgerTransaction(transaction_id), odd));
-// debug("UTT", String.format("got transaction %d", transaction_id));
-
- lastDate = date;
- lastDateString = dateString;
- odd = !odd;
+ accumulator.put(new LedgerTransaction(cursor.getInt(0)),
+ new SimpleDate(cursor.getInt(1), cursor.getInt(2), cursor.getInt(3)));