fix journal register matching

This commit is contained in:
Simon Michael 2011-06-27 14:15:53 +00:00
parent d83553661f
commit fcc8d6f8ee

View File

@ -183,7 +183,7 @@ journalRegisterReport :: [Opt] -> Journal -> Matcher -> AccountRegisterReport
journalRegisterReport opts j@Journal{jtxns=ts} m = (totallabel, items) journalRegisterReport opts j@Journal{jtxns=ts} m = (totallabel, items)
where where
ts' = sortBy (comparing tdate) $ filter (not . null . tpostings) $ map (filterTransactionPostings m) ts ts' = sortBy (comparing tdate) $ filter (not . null . tpostings) $ map (filterTransactionPostings m) ts
items = reverse $ accountRegisterReportItems m MatchAny nullmixedamt (+) ts' items = reverse $ accountRegisterReportItems m MatchNone nullmixedamt (+) ts'
-- | Get a conventional account register report, with the specified -- | Get a conventional account register report, with the specified
-- options, for the currently focussed account (or possibly the focussed -- options, for the currently focussed account (or possibly the focussed