*** Regarding Re: Transfer between bank accounts of different
currencies; [EMAIL PROTECTED] adds:
linas> First, I don't beleive the currency trading stuff was ever
linas> fully debugged, so I can't say there aren't any surprises
linas> waiting in store for you.
I found one bug that prevented the engine from accepting certain
transfers involving two currencies. I think the following patch
fixes the problem:
Index: Transaction.c
===================================================================
RCS file: /usr/local/cvsroot/src/gnu/gnucash/src/engine/Transaction.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 Transaction.c
--- Transaction.c 1999/04/16 00:35:53 1.1.1.2
+++ Transaction.c 1999/04/16 00:36:38
@@ -623,7 +623,8 @@
*/
if (force_double_entry) {
assert (s->acc);
- } else {
+ } else
+ if (s->acc == NULL) {
i++; s=slist[i]; continue;
}
It looks like the bug only occurs when you don't have force double
entry turned on. I found that I couldn't get the gnucash user
interface to work when force double entry is turned on, although the
engine itself works fine with double entry when used via the perl
interface.
linas> Next, if yu are working with only two currencies grand total,
linas> then simply set up one of the bank accounts as a 'currency'
linas> account, and that should work.
Unfortunately, this is asymmetric in that the two currencies have
different status. I have bank accounts in Denmark and the US and I
would like to treat both on an equal basis. I've found that I need to
create duplicate income and expense accounts for all the categories I
have, one for each currency.
--
Per Bojsen <[EMAIL PROTECTED]>
6132 Lexington Ridge Drive
Lexington, MA 02421-8317
USA
----- %< -------------------------------------------- >% ------
The GnuCash / X-Accountant Mailing List
To unsubscribe, send mail to [EMAIL PROTECTED] and
put "unsubscribe gnucash-devel [EMAIL PROTECTED]" in the body