-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Balance Assertion not working with Virual transactions #543
Labels
bug
Something isn't working
Comments
Tried the example provided in |
I'm getting this error as well. Wasn't sure if it was a bug, or if I'm expected to assert my balance, while considering virtual postings (that seems wrong to me...)
|
daraul
added a commit
to daraul/ledger
that referenced
this issue
Jan 23, 2020
daraul
added a commit
to daraul/ledger
that referenced
this issue
Feb 22, 2020
Separately from it's virtual one
daraul
added a commit
to daraul/ledger
that referenced
this issue
Mar 5, 2020
daraul
added a commit
to daraul/ledger
that referenced
this issue
Mar 5, 2020
Separately from it's virtual one
jwiegley
pushed a commit
that referenced
this issue
Mar 5, 2020
daraul
added a commit
to daraul/ledger
that referenced
this issue
Mar 10, 2020
Without these changes, whether an account's balance is virtual or real is not considered when asserting it's balance. This lead to situations where the user must consider their virtual postings when attemping to assert the real balance of the account. See test/regress/543_a.test for that testcase, taken from the original issue. This commit also includes other, fringe, situations that I noticed while working on the fix. It essentially just adds a separate attribute to the account class(?) that hold's the account's "real" balance, which is only updated when the user attempts an assertion on a real account. The virtual account's balance is updated the way it always was.
daraul
added a commit
to daraul/ledger
that referenced
this issue
Mar 22, 2020
Without these changes, whether an account's balance is virtual or real is not considered when asserting it's balance. This lead to situations where the user must consider their virtual postings when attemping to assert the real balance of the account. See test/regress/543_a.test for that testcase, taken from the original issue. This commit also includes other, fringe, situations that I noticed while working on the fix. It essentially just adds a separate attribute to the account class(?) that hold's the account's "real" balance, which is only updated when the user attempts an assertion on a real account. The virtual account's balance is updated the way it always was.
dbear496
added a commit
to dbear496/ledger-cli
that referenced
this issue
Jul 14, 2023
The balance of virtual accounts reflects postings from the same real account, and not vice-versa. The same should be true for postings in the same transaction.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is a simple example of the problem I'm seeing.
The assertion on the virtual checking account works, but the assertion on
Assets:Checking
does not. I get this error:The text was updated successfully, but these errors were encountered: