It's a good question that comes up from time to time whether a plugin interface that would run /before/ the booking and interpolation would be useful.
In a nutshell, here's how Beancount works:
- A top-level file is parsed to a set of partially filled directives, more or less mapping to the input, and includes files discovered during parsing are also parsed (in any order).
- The directives are merged together to a single list and sorted.
- We iterate over the sorted transactions, accumulating inventory states, and in the process interpolating missing numbers, currencies and cost, and matching reductions against inventories to produce finalized postings.
- Then the plugins are run.
- Then some balance checks and other validation checks are run.
The product is a list of finalized directives, errors produced along the way, and options parsed.
bean-query merely translates a SQL statement to a map/fiter/group loop, with a special "sum()" operation.
--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/6162d225-3372-49c2-ad2f-2b9b425617b3n%40googlegroups.com.