Skip to content

Conversation

dedmons
Copy link
Contributor

@dedmons dedmons commented Mar 23, 2018

This fixes some open issues related to balance assertions and auto transactions.

Durring journal parse, the auto xact posts are added but not flagged as visited like normal posts. So when the balance assertion is calculated, the account amount does not include the auto xacts in the calculation.

Should fix #538, #525, and my own use case :)

@jwiegley jwiegley merged commit 916641f into ledger:next Mar 24, 2018
@jwiegley
Copy link
Member

Nice catch!

@agarrharr
Copy link

I wonder if this also fixes #543...

Christoph-D added a commit to Christoph-D/ledger that referenced this pull request Jun 9, 2018
This fixes issue ledger#1127.  In my understanding, PR ledger#552 was meant to fix
this, but was incomplete.

Automated transactions did not show up in assertions, so accounts
affected by automated transactions became untestable.

This change fixes this by adding a flag to the account to tell it that
there is a new posting, analogous to the behavior of finalize().

I dug up issue ledger#1127 too late to find that this is the same solution
proposed by @tbm.  Although I came up with this independently, credit
goes to Martin Michlmayr (@tbm).
Christoph-D added a commit to Christoph-D/ledger that referenced this pull request Jun 9, 2018
This fixes issue ledger#1127.  In my understanding, PR ledger#552 was meant to fix
this, but was incomplete.

Without this patch, automated transactions are invisible to
assertions.

This patch fixes this by adding a flag to the account to tell it that
there is a new posting, analogous to the behavior of finalize().

I dug up issue ledger#1127 too late to find that this is the same solution
proposed by @tbm.  Although I wrote this independently, credit goes to
Martin Michlmayr (@tbm).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants