On 02/24/2017 11:32 PM, John Wiegley wrote:
This is run whenever a transaction is parsed. It's current.journal->add_xact
that does the processing of automated transactions before adding it to the
journal.
I am not familiar with the code, but I tried debugging it anyways, as I use
automated
In the test file I included in my first message the automated transaction
definition occurs first thing in the file. My real files are a little more
complex, consisting of multiple files all included together, but the rules
are included before the transactions in that case as well.
On Fri, Feb
> "MC" == Michael Cooper writes:
MC> for transaction in transactions_from(some_file):
MC> transaction.check_assertions()
MC> book.apply_automated(transaction)
MC> book.add(transaction)
Yes, this is how it should be. In the parser we find:
void
I'm not sure I can whether the automated transaction's posting get inserted
before or after the posting that triggered them, as I don't expect to be
able to make assertions inside a transaction that is affected by an
automated transaction. I think what I care about is that transactions
affected by