summaryrefslogtreecommitdiff
path: root/walk.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-17 18:19:25 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-17 18:19:25 -0400
commitfadab59e87f7a4789e904f8bda73ed26fbbfd9a8 (patch)
tree22b5c5d177386f2f272135adadf7d02e3e7eb7c5 /walk.h
parentde39574e89cc72aef157d10d451fac1f78af37c6 (diff)
downloadfork-ledger-fadab59e87f7a4789e904f8bda73ed26fbbfd9a8.tar.gz
fork-ledger-fadab59e87f7a4789e904f8bda73ed26fbbfd9a8.tar.bz2
fork-ledger-fadab59e87f7a4789e904f8bda73ed26fbbfd9a8.zip
changes to value expressions, and to how the display predicate is computed
Diffstat (limited to 'walk.h')
-rw-r--r--walk.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/walk.h b/walk.h
index 42a20ed1..07e592ce 100644
--- a/walk.h
+++ b/walk.h
@@ -117,6 +117,7 @@ class add_to_account_value : public item_handler<transaction_t>
public:
virtual void operator()(transaction_t * xact) {
xact->account->value += *xact;
+ xact->account->count++;
}
};
@@ -368,6 +369,7 @@ inline void sum_accounts(account_t * account) {
i++) {
sum_accounts((*i).second);
account->total += (*i).second->total;
+ account->count += (*i).second->count;
}
account->total += account->value;
}