Den sön 21 juni 2020 kl 15:46 skrev Rahix <[email protected]>:
> Right now (as of ledger 3.2.1), the `--depth` option in register reports
> 'cuts off' postings with a deeper level than the specified one.  This
> means any postings to subaccounts will not be accounted for in the
> 'amount' column.  They will however still be added into the 'total'
> column.

I welcome this change very much!
A posting like "Expenses:Car:Fuel" will currently not even be included
in output or the total if it is the last posting and "--depth 2" is
used.
I've verified this change fixes that by listing it as "Expenses:Car"
which makes much more sense to me.

> In my opinion, this isn't really a useful feature as it stands and the
> report is quite unintuitive (adding all amounts does not yield the total).

Fully agree! I've been trying to use this for quite some time to
quickly try to figure out the totals for many of my higher level
accounts but have had to resort to doing them one by one because the
numbers were almost always off by some amount.

> In addition to fixing this inconsistency, this would also bring the
> behavior of `--depth` in register reports more in line with what `--depth`
> does for balance reports.  There, it also doesn't cut off subaccounts but
> accumulates their balances in the account of the given depth.

This also appears to fix it https://github.com/ledger/ledger/issues/987.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/CAHcsaZz9%2BWoJCFHxa%2BOJOwVuJEUqM5ruDdtFV7ScPnzSvWQ0hg%40mail.gmail.com.

Reply via email to