balance: make sym: filtering work as expected in multicolumn reports

This commit is contained in:
Simon Michael 2014-03-16 09:40:51 -07:00
parent 814008d648
commit e97b8b20b8

View File

@ -760,7 +760,9 @@ periodBalanceReport opts q j = MultiBalanceReport (spans, items, totals)
(q',depthq) = (filterQuery (not . queryIsDepth) q, filterQuery queryIsDepth q)
clip = filter (depthq `matchesAccount`)
j' = filterJournalPostings q' $ journalSelectingAmountFromOpts opts j
ps = journalPostings j'
ps = journalPostings $
filterJournalPostingAmounts (filterQuery queryIsSym q) -- remove amount parts which the query's sym: terms would exclude
j'
-- the requested span is the span of the query (which is
-- based on -b/-e/-p opts and query args IIRC).