penny-0.26.0.0: Extensible double-entry accounting system

Safe HaskellNone

Penny.Lincoln.Predicates

Contents

Description

Functions that return a boolean based upon some criterion that matches something, often a PostFam. Useful when filtering Postings.

Synopsis

Documentation

reconciled :: LPdctSource

True if a posting is reconciled; that is, its flag is exactly R.

Serials

serialPdctSource

Arguments

:: Text

Name of the serial, e.g. globalPosting

-> (a -> Maybe Int)

How to obtain the serial from the item being examined

-> Int

The right hand side

-> Ordering

The Pdct returned will be True if the item has a serial and compare ser rhs returns this Ordering; False otherwise.

-> Pdct a 

Makes Pdct based on comparisons against a particular serial.