hledger-lib-1.21: A reusable library providing the core functionality of hledger
Safe HaskellNone
LanguageHaskell2010

Hledger.Data.TransactionModifier

Description

A TransactionModifier is a rule that modifies certain Transactions, typically adding automated postings to them.

Synopsis

Documentation

modifyTransactions :: Day -> [TransactionModifier] -> [Transaction] -> Either String [Transaction] Source #

Apply all the given transaction modifiers, in turn, to each transaction. Or if any of them fails to be parsed, return the first error. A reference date is provided to help interpret relative dates in transaction modifier queries.