restore transaction-aggregating (rather than filtering) in register --depth when there is a reporting interval
This commit is contained in:
parent
98ba065c59
commit
743242698f
@ -34,7 +34,8 @@ showRegisterReport opts args l
|
|||||||
where
|
where
|
||||||
interval = intervalFromOpts opts
|
interval = intervalFromOpts opts
|
||||||
ts = filterempties $ filter matchapats $ filterdepth $ ledgerTransactions l
|
ts = filterempties $ filter matchapats $ filterdepth $ ledgerTransactions l
|
||||||
filterdepth = filter (\t -> (accountNameLevel $ account t) <= depth)
|
filterdepth | interval == NoInterval = filter (\t -> (accountNameLevel $ account t) <= depth)
|
||||||
|
| otherwise = id
|
||||||
filterempties
|
filterempties
|
||||||
| Empty `elem` opts = id
|
| Empty `elem` opts = id
|
||||||
| otherwise = filter (not . isZeroMixedAmount . amount)
|
| otherwise = filter (not . isZeroMixedAmount . amount)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user