first implementation of --depth for register

This commit is contained in:
johannes@debussy 2013-11-05 16:13:37 +01:00
parent a2d29dda5f
commit 658029d39f

View file

@ -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()];