summaryrefslogtreecommitdiff
path: root/reconcile.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-10-14 19:05:55 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:19 -0400
commita53f44ecdaf9051c9e7f64993787c88d98b5348a (patch)
tree5d3876db32ae57002ec870583c5acb623e4c34c4 /reconcile.cc
parent50c689e1ae75a304ef7431fa489360076e837120 (diff)
downloadfork-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.cc8
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);