Status: New
Owner: ----
Labels: Priority-Medium
New issue 86 by
rocon...@r6.ca: Unbalanced transactions involving multiple
currencies are not reported as an error.
http://code.google.com/p/hledger/issues/detail?id=86
What steps will reproduce the problem?
1. create a file called /tmp/hledger.test with the following data:
2012/01/01 Initial
accounts:bank 100 EUR
equity:initial
2012/04/21 Test
expenses:test1 1.78 EUR
expenses:test2 $44.00
accounts:bank -45.78 EUR
2. execute hledger bal -f /tmp/hledger.test
What is the expected output? What do you see instead?
I expect there to be an error because the Test transaction does not balance
to 0. Instead I made an error where I entered $44 dollars instead of 44
EUR.
Instead the command succeeds and I'm oblivious to error in the entry.
What version of the product are you using?
hledger-0.16.1
On what operating system?
linux
Please provide any additional information below.
Some people on IRC were arguing that there is nothing that can be done to
catch this error. However I disagree. Any time that sum of all the
currencies of a transaction do not sum to 0 the entry is in error. The
fact that all the ledger entries sum to 0 is the fundamental property of
double entry bookkeeping that makes it so effective at catching errors.
Removing this property in any situation makes the ledger program useless
for catching mistakes. For currency conversions a "trading" account should
be used as described in:
http://www.mscs.dal.ca/~selinger/accounting/tutorial.html
Attachments:
hledger.test 192 bytes