[Koha-devel] Problems with exchange rates

José Parrella joseparrella at gmail.com
Mon Dec 11 00:58:29 CET 2006


Greetings,

I'm trying to setup the exchange rates in a test Koha setup. The
currency of my country, VEB, is at 2150 VEB per USD. So I'm setting up
VEB with a rate of 1, and USD with a rate of 2150, but I always end up
with 99.99999 VEB per USD. This is happening with Koha 2.2.7 in a Debian
Sarge system.

After peeking in currency.pl and C4::Acquisition, I changed the data
type for the "currency" table with the following SQL statement:

ALTER TABLE currency CHANGE rate rate float(9,5);

I'm now able to use this value in the Acquisitions module. Is this the
right way to achieve this? If so, are you planning on changing the
default data type for the "rate" column in the next releases?

Jose

-- 
José M. Parrella -> Debian Sid, k2.6.17.13
Escuela de Ingenieria Electrica
Universidad Central de Venezuela -> ucvlug.info





More information about the Koha-devel mailing list