hledger/hledger/test/errors/balanced.test
Simon Michael 0d388a6f93 ;imp: show a more helpful error for transactions unbalanced by upgrade [#2402]
(and drop the last sentence from the single-commodity unbalanced
transaction error)
2025-06-12 17:55:13 -10:00

11 lines
299 B
Plaintext

$$$ hledger check balanced -f balanced.j
>>>2 /Error: .*balanced.j:5-7:
5 \| 2022-01-01
\| a 1 A
\| b -1 B
This multi-commodity transaction is unbalanced.
Automatic commodity conversion is not enabled.
The real postings' sum should be 0 but is: 1 A, -1 B/
>>>= 1