Hi Simon,
Thanks for your quick and friendly response. I will create an issue on github for this bug.
An example of the difference between ledger and hledger with " = 0 "
-----
2023/01/01 * Opening Balances
Assets:ToZero EUR 2
Equity:Opening Balances
2023/01/02 * Testcase
Assets:Fromzero EUR 2
Assets:ToZero = 0
-----
hledger gives an error:
hledger: Error: /home/rsnel/test.dat:5-7:
5 | 2023-01-02 * Testcase
| Assets:Fromzero EUR 2
| Assets:ToZero 0 = 0
This transaction is unbalanced.
The real postings' sum should be 0 but is: EUR 2
Consider adjusting this entry's amounts, or adding missing postings.
which can be fixed by saying "= EUR 0" instead of "= 0".
ledger deducts EUR 2 from Assets:ToZero when "= 0" is specified and
also when "= EUR 0" is specified.
One other thing: I discovered that ledger 3.2.1-20200518 (that's the version that I use)
does not check balance assertions that look like this:
-----
2023/01/01 * AssertFail
Assets:To EUR 5
Assets:From = EUR 0
----
hledger complains rightly, but my version of ledger says nothing, so there were a couple
of wrong assertions in my ledger file that hledger noticed, but ledger not.
Greetings,
Rik.