Skip to main content

Module expander

Module expander 

Source
Expand description

Expander phase — apply automated-transaction rules.

Runs between the booker and the filter. For every regular transaction, every posting is matched against every auto_rules pattern; when the posting’s account matches, the rule’s extra postings are appended to the transaction with their amounts scaled by the triggering posting’s amount.

Multipliers are required by the resolver to sum to zero per rule, which means the expanded postings net out on their own — the transaction stays balanced after expansion. Auto-rule postings don’t re-trigger expansion (no recursive matching on injected postings).

Functions§

expand