Safe Haskell | None |
---|---|
Language | Haskell2010 |
Postings report, used by the register command.
Synopsis
- type PostingsReport = [PostingsReportItem]
- type PostingsReportItem = (Maybe Day, Maybe Day, Maybe Text, Posting, MixedAmount)
- postingsReport :: ReportSpec -> Journal -> PostingsReport
- mkpostingsReportItem :: Bool -> Bool -> WhichDate -> Maybe Day -> Posting -> MixedAmount -> PostingsReportItem
- tests_PostingsReport :: TestTree
Documentation
type PostingsReport = [PostingsReportItem] Source #
A postings report is a list of postings with a running total, and a little extra transaction info to help with rendering. This is used eg for the register command.
postingsReport :: ReportSpec -> Journal -> PostingsReport Source #
Select postings from the journal and add running balance and other information to make a postings report. Used by eg hledger's register command.
mkpostingsReportItem :: Bool -> Bool -> WhichDate -> Maybe Day -> Posting -> MixedAmount -> PostingsReportItem Source #
Generate one postings report line item, containing the posting, the current running balance, and optionally the posting date and/or the transaction description.