Currency automatic update for NOK of by a factor 100

Stian Soiland-Reyes stian at soiland-reyes.com
Sun Apr 25 18:52:06 EDT 2010


Hi!

I've just started using GNU Cash 2.2.9 as installed in Ubuntu 10.04/x64 (beta 2)

I'm quite pleased with the software, it works really well. Also thanks
for all the great documentation that got me started.

(My only quirk would perhaps be the US-centric default accounts ;-) )


Now, I've found what I believe is an issue with the automatic currency
updates, or perhaps in the underlying Perl library.

If I open a new file with the common account examples, and set the
default currency to GBP (British pounds), then create an Asset account
(sub-account of "Current assets") with the currency NOK (Norwegian
kroner), and I set the opening balance to NOK 100, if I then do "Get
Quotes" from the Price Editor, the quotes seem to be off by a factor
of 100.

In the "Current assets" it will say I have £1105, with the sub-account
having NOK 100.

A quick check on Google for "100 NOK in GBP" reveals that:

  100 Norwegian kroner = 11.045082 British pounds

.. so it seems that we're off by a factor of 100 here.


Repeat this with the swedish kroner SEK, and the same problem occurs,
but if you use 100 MXN it will be shown correctly as £5.34 in the
parent account.


The Scandinavian currencies NOK, DEK, SEK (and probably a few others)
are often listed with prices pr 100 NOK (instead of pr 1 NOK), so I
suspeect that might be the reason.

I'm not sure if this is due to bugs in GnuCash, Finance::Quote or
Ubuntu 10.04, I am unable to build your latest unstable version:



Debug stats:

: stain at ralph ~;gnc-fq-check
("1.17" "vwd" "yahoo_nz" "australia" "amfiindia" "usfedbonds" "canada"
"yahoo" "adig" "bux" "aiahk" "yahoo_australia" "unionfunds" "lerevenu"
"asia" "tsx" "indiamutual" "bse" "hungary" "known_currencies"
"fidelity_direct" "goldmoney" "tdwaterhouse" "trustnet"
"ftportfolios_direct" "cominvest" "morningstar" "ftportfolios"
"tdefunds" "hu" "za" "fundlibrary" "stockhousecanada_fund"
"yahoo_europe" "platinum" "maninv" "tsp" "financecanada" "usa"
"france" "troweprice" "nasdaq" "bmonesbittburns" "yahoo_asia"
"tiaacref" "troweprice_direct" "seb_funds" "greece" "fidelity"
"yahoo_brasil" "fetch_live_currencies" "dwsfunds" "finland" "hex"
"asegr" "brasil" "deka" "nyse" "canadamutual" "asx" "finanzpartner"
"fool" "dutch" "uk_unit_trusts" "nzx" "aex" "nz" "vanguard" "europe"
"bourso")

: stain at ralph ~;apt-cache show gnucash
Package: gnucash
Priority: extra
Section: universe/gnome
Installed-Size: 5872
Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
Original-Maintainer: Thomas Bushnell, BSG <tb at debian.org>
Architecture: amd64
Version: 2.2.9-5
Replaces: gnucash-common (<< 1.9.8-1)
Depends: gnucash-common (>= 2.2.9-5), guile-1.6-libs, libaqbanking29
(>= 4.0.0), libart-2.0-2 (>= 2.3.18), libatk1.0-0 (>= 1.29.3),
libbonobo2-0 (>= 2.15.0), libbonoboui2-0 (>= 2.15.1), libc6 (>= 2.4),
libcairo2 (>= 1.2.4), libenchant1c2a (>= 1.5), libfontconfig1 (>=
2.8.0), libfreetype6 (>= 2.2.1), libgconf2-4 (>= 2.27.0), libglade2-0
(>= 1:2.6.1), libglib2.0-0 (>= 2.23.5), libgnome2-0 (>= 2.17.3),
libgnomecanvas2-0 (>= 2.11.1), libgnomeui-0 (>= 2.22.0),
libgnomevfs2-0 (>= 1:2.17.90), libgoffice-0.8-8 (>= 0.8.1),
libgtk2.0-0 (>= 2.12.0), libgtkhtml3.14-19 (>= 1:3.28),
libguile-ltdl-1, libgwenhywfar47 (>= 3.1.0), libice6 (>= 1:1.0.0),
libktoblzcheck1c2a, libltdl7 (>= 2.2.6b), libofx4, liborbit2 (>=
1:2.14.10), libpango1.0-0 (>= 1.14.0), libpopt0 (>= 1.15), libsm6,
libx11-6 (>= 0), libxml2 (>= 2.7.4), zlib1g (>= 1:1.1.4), gconf2 (>=
2.10.1-2), slib (>= 3a2-5), guile-1.6-slib, libfinance-quote-perl,
libdate-manip-perl, libcrypt-ssleay-perl
Recommends: gnucash-docs
Filename: pool/universe/g/gnucash/gnucash_2.2.9-5_amd64.deb
Size: 1967710
MD5sum: e55f2789ee23d448c54105ddcc481ebf
SHA1: 0ec3dc9c167efd35632a4a0324b2d096490ebe07
SHA256: b291c5f5c2fda45b56682279605f27928c1b61a588052109f2221d793e5262d5
Description: A personal finance and money tracking program
 Gnucash can track finances in multiple accounts, keeping running
 and reconciled balances. It has an X based graphical user interface,
 double entry, a hierarchy of accounts, expense accounts (categories),
 and can import Quicken QIF files and OFX files.
Homepage: http://www.gnucash.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu


(2.3.10 build failed, used "apt-get build-dep gnucash" first)

make[4]: Entering directory `/home/stain/Desktop/gnucash-2.3.10/src/html'
/bin/bash ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
-I. -I../.. -DG_LOG_DOMAIN=\"gnc.html\" -I../../src/core-utils
-I../../src/gnc-module -I../../src/engine -I../../src/gnome-utils
-I../../src/app-utils -I../../src -I../../src -I../../lib/libc
-I../../src/libqof/qof -I../../src/libqof/qof -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -D_REENTRANT
-pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/directfb
-I/usr/include/libpng12 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DORBIT2=1 -pthread -D_REENTRANT
-I/usr/include/libgnomeui-2.0 -I/usr/include/libart-2.0
-I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1
-I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0
-I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include
-I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0
-I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libbonobo-2.0
-I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2
-I/usr/include/pango-1.0 -I/usr/include/gail-1.0
-I/usr/include/freetype2 -I/usr/include/atk-1.0
-I/usr/lib/gtk-2.0/include -I/usr/include/cairo
-I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1
-I/usr/include/directfb -I/usr/include/libpng12 -pthread -D_REENTRANT
-DORBIT2=1 -I/usr/include/libgoffice-0.8 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libgsf-1
-I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/gconf/2
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/directfb
-I/usr/include/libpng12 -I/usr/include/orbit-2.0
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include  -D_REENTRANT
-pthread -DORBIT2=1 -I/usr/include/libgtkhtml-3.14
-I/usr/include/gtk-2.0 -I/usr/include/enchant -I/usr/include/gconf/2
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/
-I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/directfb -I/usr/include/libpng12
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0
-I/usr/lib/dbus-1.0/include     -Wdeclaration-after-statement -g -O2
-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations
-Wno-unused -MT swig-gnc-html.lo -MD -MP -MF .deps/swig-gnc-html.Tpo
-c -o swig-gnc-html.lo swig-gnc-html.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../..
-DG_LOG_DOMAIN=\"gnc.html\" -I../../src/core-utils
-I../../src/gnc-module -I../../src/engine -I../../src/gnome-utils
-I../../src/app-utils -I../../src -I../../src -I../../lib/libc
-I../../src/libqof/qof -I../../src/libqof/qof -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_REENTRANT
-pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/directfb
-I/usr/include/libpng12 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -DORBIT2=1 -pthread -D_REENTRANT
-I/usr/include/libgnomeui-2.0 -I/usr/include/libart-2.0
-I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1
-I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0
-I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include
-I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0
-I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libbonobo-2.0
-I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2
-I/usr/include/pango-1.0 -I/usr/include/gail-1.0
-I/usr/include/freetype2 -I/usr/include/atk-1.0
-I/usr/lib/gtk-2.0/include -I/usr/include/cairo
-I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1
-I/usr/include/directfb -I/usr/include/libpng12 -pthread -D_REENTRANT
-DORBIT2=1 -I/usr/include/libgoffice-0.8 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libgsf-1
-I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/gconf/2
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/directfb
-I/usr/include/libpng12 -I/usr/include/orbit-2.0
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -D_REENTRANT
-pthread -DORBIT2=1 -I/usr/include/libgtkhtml-3.14
-I/usr/include/gtk-2.0 -I/usr/include/enchant -I/usr/include/gconf/2
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/
-I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/directfb -I/usr/include/libpng12
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0
-I/usr/lib/dbus-1.0/include -Wdeclaration-after-statement -g -O2 -Wall
-Wunused -Wmissing-prototypes -Wmissing-declarations -Wno-unused -MT
swig-gnc-html.lo -MD -MP -MF .deps/swig-gnc-html.Tpo -c
swig-gnc-html.c  -fPIC -DPIC -o .libs/swig-gnc-html.o
In file included from swig-gnc-html.c:1242:
../../src/gnome-utils/dialog-utils.h:29:25: error: glade/glade.h: No
such file or directory
In file included from swig-gnc-html.c:1242:
../../src/gnome-utils/dialog-utils.h:121: error: expected ‘=’, ‘,’,
‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
make[4]: *** [swig-gnc-html.lo] Error 1
make[4]: Leaving directory `/home/stain/Desktop/gnucash-2.3.10/src/html'





-- 
Stian Soiland-Reyes
Manchester, UK
http://soiland-reyes.com/


More information about the gnucash-user mailing list