From a53f44ecdaf9051c9e7f64993787c88d98b5348a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 14 Oct 2005 19:05:55 +0000 Subject: Support has been added for clearing of individual transactions. Set `ledger-clear-whole-entries' in Emacs to revert to the old behavior. --- reconcile.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'reconcile.cc') diff --git a/reconcile.cc b/reconcile.cc index 0ba571b7..07e2125d 100644 --- a/reconcile.cc +++ b/reconcile.cc @@ -45,12 +45,12 @@ void reconcile_transactions::flush() x != xacts.end(); x++) { if (! cutoff || std::difftime((*x)->entry->date, cutoff) < 0) { - switch ((*x)->entry->state) { - case entry_t::CLEARED: + switch ((*x)->state) { + case transaction_t::CLEARED: cleared_balance += (*x)->amount; break; - case entry_t::UNCLEARED: - case entry_t::PENDING: + case transaction_t::UNCLEARED: + case transaction_t::PENDING: pending_balance += (*x)->amount; *last_ptr = *x; last_ptr = xact_next_ptr(*x); -- cgit v1.2.3