diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-18 23:24:53 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-18 23:25:28 -0500 |
commit | ae8b57f15785f0fbe300e7d6d2b709b4730556d1 (patch) | |
tree | b0650b21331300e3e5eecf6185b70721b8f792b2 /src/filters.cc | |
parent | 56d6df6123d84abe408e16fcecd7a7600eb33055 (diff) | |
download | fork-ledger-ae8b57f15785f0fbe300e7d6d2b709b4730556d1.tar.gz fork-ledger-ae8b57f15785f0fbe300e7d6d2b709b4730556d1.tar.bz2 fork-ledger-ae8b57f15785f0fbe300e7d6d2b709b4730556d1.zip |
Renamed bool controlling running total calculations
It used to be "account_wise", since it only happens for non-account-wise
reports. Now it's called just "calc_running_total", so anyone can
request it.
Diffstat (limited to 'src/filters.cc')
-rw-r--r-- | src/filters.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filters.cc b/src/filters.cc index ff5a9775..4c69dd78 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -217,7 +217,7 @@ void calc_posts::operator()(post_t& post) if (last_post) { assert(last_post->has_xdata()); - if (! account_wise) + if (calc_running_total) xdata.total = last_post->xdata().total; xdata.count = last_post->xdata().count + 1; } else { @@ -230,7 +230,7 @@ void calc_posts::operator()(post_t& post) account_t * acct = post.reported_account(); acct->xdata().add_flags(ACCOUNT_EXT_VISITED); - if (! account_wise) + if (calc_running_total) add_or_set_value(xdata.total, xdata.visited_value); item_handler<post_t>::operator()(post); |