hledger-lib-0.12.1: Core types and utilities for working with hledger (or c++ ledger) data.

Hledger.Data.Posting

Description

A Posting represents a MixedAmount being added to or subtracted from a single Account. Each Transaction contains two or more postings which should add up to 0. Postings also reference their parent transaction, so we can get a date or description for a posting (from the transaction). Strictly speaking, "entry" is probably a better name for these.

Synopsis

Documentation

isPostingInDateSpan :: DateSpan -> Posting -> BoolSource

Does this posting fall within the given date span ?

postingsDateSpan :: [Posting] -> DateSpanSource

Get the minimal date span which contains all the postings, or DateSpan Nothing Nothing if there are none.