lib: note that depth does not affect transactions reports

This commit is contained in:
Simon Michael 2016-06-12 07:18:03 -07:00
parent 68a1a8687a
commit 74d8570da3

View File

@ -113,8 +113,11 @@ type AccountTransactionsReportItem =
)
accountTransactionsReport :: ReportOpts -> Journal -> Query -> Query -> AccountTransactionsReport
accountTransactionsReport opts j q thisacctquery = (label, items)
accountTransactionsReport opts j reportq thisacctquery = (label, items)
where
-- a depth limit does not affect the account transactions report
q = -- filterQuery (not . queryIsDepth) -- seems unnecessary for some reason XXX
reportq
-- get all transactions, with amounts converted to cost basis if -B
ts1 = jtxns $ journalSelectingAmountFromOpts opts j
-- apply any cur:SYM filters in q