Currency Handling and Double Entry Bookkeeping


Table of Contents
How to set up a foreign-currency account
ISO Currency Codes

A Double Entry bookkeeping system stores both values, and requires that all transactions balance, as described in the Rule of Double Entry Accounting.

When we introduce the notion of having multiple currencies, or stocks that may vary in price, the identities get a little more complicated, and we introduce the following formulae:

Thus, buying a widget in Japan (JPY) and using US Dollars (USD) to pay for it would appear thus:

The engine links together all three of these values (1.0, 150, 0.00667) permanently and makes it impossible to change one without changing another, so that the grand total is always zero, thereby guaranteeing satisfaction of the rule of double entry accounting.

How to set up a foreign-currency account

All of the above may sound straightforward, but you may get stumped when you first try to represent some foreign money. Let's demonstrate how you'd go about setting up an account to represent, say, French Francs.

Let's say you have an account that holds cash in US dollars, and it has $1,000 in it. You want to buy about $100 worth of Francs, and naturally you'd like to represent those Francs in their own account. Here's what you need to do:

Here's what it all looks like once you're done: