I am trying to declare an account and check it's balance and all of its childrens' balances. Doc says
The check and assert directives warn or raise an error (respectively) if the given value expression evaluates to false within the context of any posting.
The doc for value expressions says
O - The total of all postings seen so far, or the total of an account and all its children.
So I am trying to write:
account BudgetBut I get no errors with this test:
4/14 testWhat is the correct syntax to do this? I've tried other formats like:
check O >= 0But I can't seem to get any of them to work. The documentation claims that the variable O contains the total of an account and all its children. Is this the correct implementation?