From 74d8570da36309cdf64ae23a4fee30e2ee12bdae Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 12 Jun 2016 07:18:03 -0700 Subject: [PATCH] lib: note that depth does not affect transactions reports --- hledger-lib/Hledger/Reports/TransactionsReports.hs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hledger-lib/Hledger/Reports/TransactionsReports.hs b/hledger-lib/Hledger/Reports/TransactionsReports.hs index f31757afc..1336eee1f 100644 --- a/hledger-lib/Hledger/Reports/TransactionsReports.hs +++ b/hledger-lib/Hledger/Reports/TransactionsReports.hs @@ -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