summaryrefslogtreecommitdiff
path: root/src/output.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-23 01:51:23 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-23 01:51:23 -0400
commit9f53efbf5f8e49b9c4dbe8c3ff595e99903b3aab (patch)
treeacf41ff447a8d2adac68c51f40f0a50e846133c8 /src/output.cc
parentde6de07bac1337b0dd87b41c853369dc8432c2af (diff)
downloadfork-ledger-9f53efbf5f8e49b9c4dbe8c3ff595e99903b3aab.tar.gz
fork-ledger-9f53efbf5f8e49b9c4dbe8c3ff595e99903b3aab.tar.bz2
fork-ledger-9f53efbf5f8e49b9c4dbe8c3ff595e99903b3aab.zip
Many fixes to both --market and --exchange
Diffstat (limited to 'src/output.cc')
-rw-r--r--src/output.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/output.cc b/src/output.cc
index fd27e2bb..e33ae627 100644
--- a/src/output.cc
+++ b/src/output.cc
@@ -170,7 +170,7 @@ void gather_statistics::operator()(xact_t& xact)
statistics.filenames.insert(xact.pathname);
- date_t date = xact.reported_date();
+ date_t date = xact.date();
if (date.year() == CURRENT_DATE().year() &&
date.month() == CURRENT_DATE().month())
@@ -185,11 +185,11 @@ void gather_statistics::operator()(xact_t& xact)
statistics.total_uncleared_xacts++;
if (! is_valid(statistics.earliest_xact) ||
- xact.reported_date() < statistics.earliest_xact)
- statistics.earliest_xact = xact.reported_date();
+ xact.date() < statistics.earliest_xact)
+ statistics.earliest_xact = xact.date();
if (! is_valid(statistics.latest_xact) ||
- xact.reported_date() > statistics.latest_xact)
- statistics.latest_xact = xact.reported_date();
+ xact.date() > statistics.latest_xact)
+ statistics.latest_xact = xact.date();
statistics.accounts_referenced.insert(xact.account->fullname());
statistics.payees_referenced.insert(xact.entry->payee);