make -E work in register report

This commit is contained in:
Simon Michael 2009-03-17 19:56:05 +00:00
parent 89abdfa456
commit 1fc9d47bd8

View File

@ -33,7 +33,10 @@ showRegisterReport opts args l
| otherwise = showtxns summaryts nulltxn startbal
where
interval = intervalFromOpts opts
ts = filter (not . isZeroMixedAmount . amount) $ filter matchapats $ ledgerTransactions l
ts = filterempties $ filter matchapats $ ledgerTransactions l
filterempties
| Empty `elem` opts = id
| otherwise = filter (not . isZeroMixedAmount . amount)
(precedingts, ts') = break (matchdisplayopt dopt) ts
(displayedts, _) = span (matchdisplayopt dopt) ts'
startbal = sumTransactions precedingts