Re: Bug with automated transactions and balance assertions?

2017-02-25 Thread 'Yuval Hager' via Ledger
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

Re: Bug with automated transactions and balance assertions?

2017-02-25 Thread Michael Cooper
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

Re: Bug with automated transactions and balance assertions?

2017-02-24 Thread John Wiegley
> "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

Re: Bug with automated transactions and balance assertions?

2017-02-20 Thread Michael Cooper
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