a different conversion from BEF to EUR

Christian Stimming stimming@tuhh.de
Wed, 1 May 2002 10:52:30 +0200


-----BEGIN PGP SIGNED MESSAGE-----

On Monday 29 April 2002 11:48, Thomas Vander Stichele wrote:
> What I would rather want is actually fairly simple ;-) I want to reach
> into the data files, convert each amount to EUR by dividing them by
> 40.3399, and then change the id for the currency from BEF to EUR.
> A clean one-stop conversion, making me believe that I never ever typed
> anything in in BEF.

You want to change the amount of each existing transaction? Are you aware of 
the fact that this will give you tons of rounding errors, thus your current 
account balance will almost surely be totally different (well, at least in 
the order of Euro-cents) from what it is now. For that reason we (read: me 
during writing the Euro conversion wizard) didn't support any changing of 
existing transactions. Closing the BEF account and opening a new EUR account 
is IMHO the only sound solution for this currency switch.

> My question is : is there some way in the current framework to do that ?
> If not, how hard would it be for me to understand the basic format of
> gnucash data files and do this myself ?

There is no way in the current framework to do this. The data file is not 
where you would do this; instead, if you want to code this by yourself, you 
would need to use the Gnucash engine's API and write some code that walks 
through all exisiting transactions. For the resons pointed out above,  
currently there's nothing comparable in the code.

Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.5 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iQCVAwUBPM+s1GXAi+BfhivFAQFMCQQAm+XxYrUz2cymR6cYirOVf9CbSIiP8jML
TNb2bPAWYqMD7pEr7VMutQDiIExBr7/f2BkMowCQmccmWBEKQMXqjYYh7fJh++jk
01lPHLg+1B65xVCALus54yHS7avWxQM1TZPtkKmVMQotyByiMif46bufJo2pZO6G
TfL122d+bEk=
=HXue
-----END PGP SIGNATURE-----