On Dienstag, August 20 2002, Herbert Thoma pointed out a bug in imported currency accounts from a gnucash-1.6 file into gnucash-CVS. Recently I encountered the same problem and it turned out to not only affect 1.6-er files but additionally the complete multi-currency handling.
I extended Herbert's demonstration file (attached). Please open it and open
the "DEM-EUR" currency account. You will see two transactions. One of them is
not balanced (labelled as "Wrong Transaction"). First bug: This transaction
has been balanced in gnucash-1.6. But there are more obvious bugs to come.
Now open the multi-split view of the "Wrong Transaction".
You see the other split ("Correct Split") that books the 511.29 EUR to a EUR
account. But in the the split of this account ("Wrong Split"), you see that
the split value 1000.00 is correct and corresponds to the "Correct
Transaction". But the split amount is WRONG since it deduces 1000.00 shares
at a price of 1.0 from this account, whereas it was supposed to deduce 511.29
shares at a (dynamically calculated) price of 1.95584, just as the price in
the "Correct Transaction".
Here's the OBVIOUS BUG: Now try to enter the mentioned price (or any other) in
the "price" field, and answer the following question such that the "share
amount" should be changed. Bummer. The amount simply doesn't change at all.
This is a SERIOUS problem of share/multi-currency handling which definitely
needs to be sorted out until 1.8. Anybody any ideas?
Christian
currency_account_xac_DEFANGED-23.DEFANGED-0
Description: application/defanged-0
This message has been 'sanitized'. This means that potentially
dangerous content has been rewritten or removed. The following
log describes which actions were taken.
Sanitizer (start="1036970232"):
Part (pos="930"):
SanitizeFile (filename="unnamed.txt", mimetype="text/plain"):
Match (rule="2"):
Enforced policy: accept
Part (pos="2569"):
SanitizeFile (filename="currency_account.xac", mimetype="text/xml"):
Match (rule="default"):
Enforced policy: defang
Replaced mime type with: application/DEFANGED-23
Replaced file name with: currency_account_xac.DEFANGED-23
Total modifications so far: 1
Anomy 0.0.0 : Sanitizer.pm
$Id: Sanitizer.pm,v 1.54 2002/02/15 16:59:07 bre Exp $
This message has been 'sanitized'. This means that potentially
dangerous content has been rewritten or removed. The following
log describes which actions were taken.
Sanitizer (start="1036970287"):
Part (pos="2318"):
SanitizeFile (filename="unnamed.txt", mimetype="text/plain"):
Match (rule="2"):
Enforced policy: accept
Part (pos="3957"):
SanitizeFile (filename="currency_account_xac.DEFANGED-23", mimetype="application/DEFANGED-23"):
Match (rule="default"):
Enforced policy: defang
Replaced mime type with: application/DEFANGED-0
Replaced file name with: currency_account_xac_DEFANGED-23.DEFANGED-0
Part (pos="10391"):
SanitizeFile (filename="sanitizer.log", mimetype="text/sanitizer-log"):
Match (rule="2"):
Enforced policy: accept
Total modifications so far: 1
Anomy 0.0.0 : Sanitizer.pm
$Id: Sanitizer.pm,v 1.54 2002/02/15 16:59:07 bre Exp $
