summaryrefslogtreecommitdiff
path: root/src/filters.cc
diff options
context:
space:
mode:
authorjohannes@debussy <johannes@debussy>2013-11-05 16:13:37 +0100
committerjohannes@debussy <johannes@debussy>2013-11-05 16:13:37 +0100
commit658029d39f8594c7f3bf75fb8f7ca9fb2081b473 (patch)
tree00f480f312928c1c4eca25fb08119e509dd57d70 /src/filters.cc
parenta2d29dda5f514b84b503037195ca8a79a7969f7d (diff)
downloadfork-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.cc4
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()];