penny-0.28.0.0: Extensible double-entry accounting system

Safe HaskellNone

Penny.Lincoln.Predicates.Siblings

Contents

Description

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

Synopsis

Documentation

qty :: Ordering -> Qty -> LPdctSource

A Pdct that returns True if compare subject qty returns the given Ordering.

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

-> ((TopLineData, Ent PostingData) -> Maybe Int)

How to obtain the serial from the item being examined

-> Int

The right hand side

-> Ordering

The Pdct returned will be Just True if the item has a serial and compare ser rhs returns this Ordering; Just False if the item has a srerial and compare does not return this Ordering; Nothing if the item does not have a serial.

-> Pdct Posting 

Makes Pdct based on comparisons against a particular serial.