Open simonmichael opened 11 years ago
From simon@joyful.com on January 18, 2012 18:26:05 Actually it's not described at that link, but at places like https://groups.google.com/forum/#!searchin/ledger-cli/revalued/ledger-cli/9oa47zA-qqM/Gkpg0VoVkHkJ
I propose to close current bug and open one or more bugs nudging hledger towards following the advice in
http://www.mscs.dal.ca/~selinger/accounting/tutorial.html#4.2
for multicurrency acounting. The selinger link is also referenced in the googlegroups thread above.
I don't understand the desired behavior for currency revaluations, and I'm not convinced it adds value to the accounting tool.
I think what might be nice is a feature that lets you add a history of date,(curr1/curr2),conversionFactor like
2013-01-01, dollar/euro, 0.8 2013-01-02, dollar/euro,0.81 .....
and then have an hledger view that converts everything to the desired reference currency using these conversion factors. But this is purely a "view" and not how the data is actually stored.
so you might do
hledger balance --numeraire-currency=USD
and then hledger would report everything in dollars somehow, using the conversion factors specified.
But that would be something to implement way down the line. For now, the important thing is to follow the rules of accounting, and debits always equal credits in multicurrency, and disallow voodoo inferred currency conversions like in https://github.com/simonmichael/hledger/issues/115
Original author: simon@joyful.com (January 18, 2012 17:20:43)
As reported by betabug, hledger doesn't auto-generate the commodity revaluation transactions described at http://ledger-cli.org/3.0/doc/ledger3.html#Commodity-Pricing-Problem , so hledger's and ledger's reports can differ eg when exchange rates are changing.
Some corresponding register reports for reference:
Original issue: http://code.google.com/p/hledger/issues/detail?id=82