diff options
author | John Wiegley <johnw@newartisans.com> | 2005-10-14 19:05:55 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:19 -0400 |
commit | a53f44ecdaf9051c9e7f64993787c88d98b5348a (patch) | |
tree | 5d3876db32ae57002ec870583c5acb623e4c34c4 /reconcile.cc | |
parent | 50c689e1ae75a304ef7431fa489360076e837120 (diff) | |
download | fork-ledger-a53f44ecdaf9051c9e7f64993787c88d98b5348a.tar.gz fork-ledger-a53f44ecdaf9051c9e7f64993787c88d98b5348a.tar.bz2 fork-ledger-a53f44ecdaf9051c9e7f64993787c88d98b5348a.zip |
Support has been added for clearing of individual transactions. Set
`ledger-clear-whole-entries' in Emacs to revert to the old behavior.
Diffstat (limited to 'reconcile.cc')
-rw-r--r-- | reconcile.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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); |