diff options
author | johannes@debussy <johannes@debussy> | 2013-11-05 16:13:37 +0100 |
---|---|---|
committer | johannes@debussy <johannes@debussy> | 2013-11-05 16:13:37 +0100 |
commit | 658029d39f8594c7f3bf75fb8f7ca9fb2081b473 (patch) | |
tree | 00f480f312928c1c4eca25fb08119e509dd57d70 /src/filters.cc | |
parent | a2d29dda5f514b84b503037195ca8a79a7969f7d (diff) | |
download | fork-ledger-658029d39f8594c7f3bf75fb8f7ca9fb2081b473.tar.gz fork-ledger-658029d39f8594c7f3bf75fb8f7ca9fb2081b473.tar.bz2 fork-ledger-658029d39f8594c7f3bf75fb8f7ca9fb2081b473.zip |
first implementation of --depth for register
Diffstat (limited to 'src/filters.cc')
-rw-r--r-- | src/filters.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/filters.cc b/src/filters.cc index f7321438..2b4fe1bf 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -473,6 +473,10 @@ void collapse_posts::report_subtotal() value_t& collapse_posts::find_totals(account_t* account) { unsigned short depth=3; + + if(depth==0) + return totals[_("<Total>")]; + if(account->depth==depth) return totals[account->fullname()]; |