balance: make sym: filtering work as expected in multicolumn reports
This commit is contained in:
parent
814008d648
commit
e97b8b20b8
@ -760,7 +760,9 @@ periodBalanceReport opts q j = MultiBalanceReport (spans, items, totals)
|
|||||||
(q',depthq) = (filterQuery (not . queryIsDepth) q, filterQuery queryIsDepth q)
|
(q',depthq) = (filterQuery (not . queryIsDepth) q, filterQuery queryIsDepth q)
|
||||||
clip = filter (depthq `matchesAccount`)
|
clip = filter (depthq `matchesAccount`)
|
||||||
j' = filterJournalPostings q' $ journalSelectingAmountFromOpts opts j
|
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
|
-- the requested span is the span of the query (which is
|
||||||
-- based on -b/-e/-p opts and query args IIRC).
|
-- based on -b/-e/-p opts and query args IIRC).
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user