-- | Select transactions for an entries report.
entriesReport :: ReportSpec -> Journal -> EntriesReport
entriesReport rspec@ReportSpec{_rsReportOpts=ropts} =
    sortBy (comparing $ transactionDateFn ropts) . jtxns
    . journalApplyValuationFromOpts (setDefaultConversionOp NoConversionOp rspec)
    . filterJournalTransactions (_rsQuery rspec)
entriesReport :: ReportSpec -> Journal -> EntriesReport
entriesReport rspec@ReportSpec{_rsReportOpts=ropts} =
    sortBy (comparing $ transactionDateFn ropts) . jtxns
    . journalApplyValuationFromOpts (setDefaultConversionOp NoConversionOp rspec)
    . filterJournalTransactions (_rsQuery rspec)
entriesReport rspec@ReportSpec{_rsReportOpts=ropts} =
    sortBy (comparing $ transactionDateFn ropts) . jtxns
    . journalApplyValuationFromOpts (setDefaultConversionOp NoConversionOp rspec)
    . filterJournalTransactions (_rsQuery rspec)