From 4ca26fbd73e2619d7de75363b294163a16832982 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 9 Feb 2005 11:50:31 +0000 Subject: *** empty log message *** --- main.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'main.cc') diff --git a/main.cc b/main.cc index f01b60b1..c2ff8694 100644 --- a/main.cc +++ b/main.cc @@ -374,8 +374,15 @@ def vmax(d, val):\n\ walk_transactions(new_entry->transactions, *formatter); else if (command == "P" || command == "D") walk_commodities(commodity_t::commodities, *formatter); - else if (command == "R") - reconcile_account(*journal, *journal->master, value_t(long(0))); + else if (command == "R") { + account_t * account = journal->find_account_re(*arg); + if (! account) + throw error(std::string("Could not find account matching '") + + *arg + "'"); + reconcile_results_t results = reconcile_account(*journal, *account, + value_t(*++arg)); + walk_transactions(results.pending_xacts, *formatter); + } else if (command == "w") write_textual_journal(*journal, *arg, *formatter, *out); else -- cgit v1.2.3