[grisbi-bugs] [Grisbi-0.6.0 0000842]: Import from 0.5.9 fails

bugtracker at grisbi.org bugtracker at grisbi.org
Tue Jan 12 21:10:59 CET 2010


The following issue has been RESOLVED. 
====================================================================== 
http://grisbi.tuxfamily.org/mantis/view.php?id=842 
====================================================================== 
Reported By:                bbgen
Assigned To:                pbiava
====================================================================== 
Project:                    Grisbi-0.6.0
Issue ID:                   842
Category:                   Main
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     resolved
Plateforme:                 Windows 
OS:                         Windows 
Version OS:                 Windows Vista x64 
Unstable Impact:            Yes 
Version GTK:                2.16.6 
Resolution:                 fixed
Fixed in Version:           CVS (développement)
====================================================================== 
Date Submitted:             01-07-2010 15:30 UTC
Last Modified:              01-12-2010 20:10 UTC
====================================================================== 
Summary:                    Import from 0.5.9 fails
Description: 
Hey,

I'm trying to import my 0.5.9 grisbi file to 0.6.0 b3, but it makes a huge
mistake: All transactions are multiplied with a factor 100.

I did the following to reproduce it for you:
*) I anonymized my original 0.5.9 grisbi file with your obfuscate.pl
   http://bbgen.net/grisbi/anonymous.gsb
*) I've opened this file with grisbi 0.6.0
*) next on all dialogs without any checkbox editing
*) I've saved the file. http://bbgen.net/grisbi/anonymous_06.gsb

As you can see all transactions are multiplied with 100.

For example the following transaction in anonymous.gsb:
        <Operation No="954" Id="" D="31/12/2008" Db="0/0/0"
M="356.311293825534" De="1" Rdc="0" Tc="0,0000000" Fc="0,0000000" T="0"
C="0" Sc="0" Ov="0" N="" Ty="3" Ct="" P="0" A="0" R="0" E="0" I="0" Si="0"
Pc="" Ibg="" Ro="0" Rc="0" Va="0"/>
and in anonymous_06.gsb:
	<Transaction Ac="0" Nb="954" Id="" Dt="12/31/2008" Dv="" Cu="1"
Am="35631.0" Exb="0" Exr="0.0000000" Exf="0.0000000" Pa="0" Ca="0" Sca="0"
Br="0" No="(null)" Pn="3" Pc="(null)" Ma="0" Ar="0" Au="0" Re="0" Fi="0"
Bu="0" Sbu="0" Vo="" Ba="(null)" Trt="0" Mo="0" />


And now an interesting thing: If I open anonymous_06.gsb with grisbi 0.6.0
again, all transactions are being multiplied with 10.
http://bbgen.net/grisbi/anonymous_06b.gsb
	<Transaction Ac="0" Nb="954" Id="" Dt="12/31/2008" Dv="" Cu="1"
Am="356310.0" Exb="0" Exr="0.0" Exf="0.0" Pa="0" Ca="0" Sca="0" Br="0"
No="(null)" Pn="3" Pc="(null)" Ma="0" Ar="0" Au="0" Re="0" Fi="0" Bu="0"
Sbu="0" Vo="" Ba="" Trt="0" Mo="0" />

I really don't know what the cause of this is, but it really prevents me
from using grisbi 0.6.0
====================================================================== 

---------------------------------------------------------------------- 
 pbiava - 01-11-10 20:56  
---------------------------------------------------------------------- 
Traducido por Google

Su versión 0.5.9 Grisbi archivo es defectuosa porque la cantidad decimal
es el punto en el separador decimal debe ser coma.

¿Se puede guardar el archivo con la versión 0.5.9 Grisbi anonymous.gsb y
dime si el separador decimal es una coma ahora.

Your file grisbi 0.5.9 is defective because the decimal for the amounts is
a dot there should be a comma

Can you save anonymous.gsb with Grisbi-0.5.9 and tell me if the decimal
separator is a comma now. 

---------------------------------------------------------------------- 
 bbgen - 01-12-10 13:53  
---------------------------------------------------------------------- 
Ok.
I've now reopened anonymous.gsb with grisbi 0.5.9 and saved it:
http://bbgen.net/grisbi/anonymous_059resaved.gsb
Everything looks fine:         <Operation No="954" Id="" D="31/12/2008"
Db="0/0/0" M="356,3112938" De="1" Rdc="0" Tc="0,0000000" Fc="0,0000000"
T="0" C="0" Sc="0" Ov="0" N="" Ty="3" Ct="" P="0" A="0" R="0" E="0" I="0"
Si="0" Pc="" Ibg="" Ro="0" Rc="0" Va="0"/>

Then I opened anonymous_059resaved.gsb with Grisbi 0.6.0 and saved it:
http://bbgen.net/grisbi/anonymous_060resaved.gsb
It still looks fine:  <Transaction Ac="0" Nb="954" Id="" Dt="12/31/2008"
Dv="" Cu="1" Am="356.31" Exb="0" Exr="0.0000000" Exf="0.0000000" Pa="0"
Ca="0" Sca="0" Br="0" No="(null)" Pn="3" Pc="(null)" Ma="0" Ar="0" Au="0"
Re="0" Fi="0" Bu="0" Sbu="0" Vo="" Ba="(null)" Trt="0" Mo="0" />

But if I reopen anonymous_060resaved.gsb with Grisbi 0.6.0 and save it
again: http://bbgen.net/grisbi/anonymous_060resaved_b.gsb
All transactions become multiplied with 100: <Transaction Ac="0" Nb="954"
Id="" Dt="12/31/2008" Dv="" Cu="1" Am="35631.0" Exb="0" Exr="0.0" Exf="0.0"
Pa="0" Ca="0" Sca="0" Br="0" No="(null)" Pn="3" Pc="(null)" Ma="0" Ar="0"
Au="0" Re="0" Fi="0" Bu="0" Sbu="0" Vo="" Ba="" Trt="0" Mo="0" />


So it seems that the bug affects opening a Grisbi 0.6.0 file with Grisbi
0.6.0 

---------------------------------------------------------------------- 
 pbiava - 01-12-10 20:10  
---------------------------------------------------------------------- 
fixed in CVS 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-07-10 15:30  bbgen          New Issue                                    
01-07-10 15:30  bbgen          Plateforme                => Windows         
01-07-10 15:30  bbgen          OS                        => Windows         
01-07-10 15:30  bbgen          Version OS                => Windows Vista x64
01-07-10 15:30  bbgen          Unstable Impact           => Yes             
01-07-10 15:30  bbgen          Version GTK               => 2.16.6          
01-10-10 07:05  pbiava         Status                   new => assigned     
01-10-10 07:05  pbiava         Assigned To               => pbiava          
01-11-10 20:56  pbiava         Note Added: 0001654                          
01-12-10 13:53  bbgen          Note Added: 0001657                          
01-12-10 20:10  pbiava         Status                   assigned => resolved
01-12-10 20:10  pbiava         Fixed in Version          => CVS (développement)
01-12-10 20:10  pbiava         Resolution               open => fixed       
01-12-10 20:10  pbiava         Note Added: 0001658                          
======================================================================



More information about the bugsreports mailing list