From f8dc2da4b62fc821ad778fd824bdd4dd7a4b19c6 Mon Sep 17 00:00:00 2001 From: Dave Peticolas Date: Mon, 17 Jul 2000 00:55:01 +0000 Subject: [PATCH] Eric Hanchrow's currency doc patch. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2587 57a11ea4-9604-0410-9ed3-97b8803252fd --- doc/html/C/xacc-currency.html | 59 +++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/doc/html/C/xacc-currency.html b/doc/html/C/xacc-currency.html index c03a8b9576..3e681f6299 100644 --- a/doc/html/C/xacc-currency.html +++ b/doc/html/C/xacc-currency.html @@ -63,6 +63,65 @@ "xacc-double.html#IDENTITY">double entry accounting identity.

+

+ 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:

+
    +
  1. + Create a new account (name it "Francs") of type Cash, with a + currency of FRF (that's the ISO code for French Francs; see ISO Currency Codes, below). +
  2. +
  3. + Create another account (name it "Trading"), of type + Currency, with a currency of USD, and a security of + FRF. This account will represent trades between the + two currencies, or to be more precise, purchases of Francs + with dollars. +
  4. +
  5. + Now open the "Trading" account, and enter a transaction that + transfers from your cash account. Put 555 in the "Bought" + column, and .18 in the Price column. You've now bought 555 + Francs for $0.18 apiece. +
  6. +
  7. + Last step: transfer the $99.90 that is now in your trading + account into the "Francs" account. Note that you could not + have transferred anything directly from cash to Francs (try + it); those two accounts do not have a currency in common. +
  8. +
+

A few unpleasant things you may have noticed about the above + procedure:

+ +

Notwithstanding the above unpleasantness, this is how you deal + with foreign currencies in GnuCash. The key is that you need a + trading account whose Security field names a different currency + than its Currency field, and your trades must go "through" this + trading account.

+

ISO Currency Codes