Safe Haskell | None |
---|
Examining a Posting for a particular component of the main posting (as opposed to the sibling postings) in the Posting. For some components, such as the payee, the posting might have one piece of data while the TopLine has something else. These functions will examine the Posting first and, if it has no information, use the data from the TopLine if it is there.
- best :: (TopLineData -> Maybe a) -> (Ents PostingData -> Maybe a) -> Posting -> Maybe a
- payee :: Posting -> Maybe Payee
- number :: Posting -> Maybe Number
- flag :: Posting -> Maybe Flag
- postingMemo :: Posting -> Maybe Memo
- transactionMemo :: Posting -> Maybe Memo
- dateTime :: Posting -> DateTime
- localDay :: Posting -> Day
- account :: Posting -> Account
- tags :: Posting -> Tags
- entry :: Posting -> Either (Entry QtyRep) (Entry Qty)
- balance :: Posting -> Balance
- drCr :: Posting -> DrCr
- amount :: Posting -> Either (Amount QtyRep) (Amount Qty)
- eiQty :: Posting -> Either QtyRep Qty
- qty :: Posting -> Qty
- commodity :: Posting -> Commodity
- topMemoLine :: Posting -> Maybe TopMemoLine
- topLineLine :: Posting -> Maybe TopLineLine
- globalTransaction :: Posting -> Maybe GlobalTransaction
- fileTransaction :: Posting -> Maybe FileTransaction
- globalPosting :: Posting -> Maybe GlobalPosting
- filePosting :: Posting -> Maybe FilePosting
- postingLine :: Posting -> Maybe PostingLine
- side :: Posting -> Maybe Side
- spaceBetween :: Posting -> Maybe SpaceBetween
- filename :: Posting -> Maybe Filename
Documentation
best :: (TopLineData -> Maybe a) -> (Ents PostingData -> Maybe a) -> Posting -> Maybe aSource
Uses the data from the Posting if it is set; otherwise, use the data from the TopLine.
postingMemo :: Posting -> Maybe MemoSource