[grisbi-bugs] [Grisbi-0.6.0 0000832]: grisbi doesn't save initial balance correctly

bugtracker at grisbi.org bugtracker at grisbi.org
Mon Jan 4 15:45:22 CET 2010


A NOTE has been added to this issue. 
====================================================================== 
http://grisbi.tuxfamily.org/mantis/view.php?id=832 
====================================================================== 
Reported By:                uve
Assigned To:                pbiava
====================================================================== 
Project:                    Grisbi-0.6.0
Issue ID:                   832
Category:                   Main
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Plateforme:                 Linux 
OS:                         Ubuntu 
Version OS:                 9.10  (amd64) 
Unstable Impact:            Yes 
Version GTK:                2.18.3-1ubuntu2.1 
====================================================================== 
Date Submitted:             01-02-2010 19:18 UTC
Last Modified:              01-04-2010 14:45 UTC
====================================================================== 
Summary:                    grisbi doesn't save initial balance correctly
Description: 
I create a new account and new banck account. I change my initial balance
(for example 35,20€ -> I'm using eur), I save the file and when I open it
again, grisbi shows 3.5200,00€
====================================================================== 

---------------------------------------------------------------------- 
 uve - 01-02-10 19:27  
---------------------------------------------------------------------- 
The problem is that grisbi saves Initial_balance="34.50" in <Account info>
(in file.gsb)instead Initial_balance="34,50". There are errors to parse the
amount. 

---------------------------------------------------------------------- 
 pbiava - 01-03-10 17:25  
---------------------------------------------------------------------- 
Can you run the following command in a terminal and give me the answer:

echo $LANG

Here it gives :

echo $LANG
fr_FR.UTF-8 

---------------------------------------------------------------------- 
 uve - 01-03-10 19:06  
---------------------------------------------------------------------- 
$ echo $LANG
es_ES.UTF-8 

---------------------------------------------------------------------- 
 pbiava - 01-03-10 21:32  
---------------------------------------------------------------------- 
can you send me a line of your file that represents a transaction with a
number > 1000?

The point is it the thousands separator? 

---------------------------------------------------------------------- 
 uve - 01-04-10 14:45  
---------------------------------------------------------------------- 
I'm using point to separate thousand. I create a new a account file with a
new bank. I set initial value to 1.200,00€ and I make a new transaction
with 1.600,00€. Grisbi shows all correctly, then I save the file. Grisbi
saves:

<Account
	Name="Cuenta bancaria"
	Id="(null)"
	...
	Initial_balance="1200.00"
/>

<Transaction Ac="1" Nb="1" Id="" Dt="01/04/2010" Dv="" Cu="1" Am="-1600.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" />

If I close Grisbi and I open it again, Grisbi shows account balance of
120.000,00€ and a transaction of 16.000,00€ 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-02-10 19:18  uve            New Issue                                    
01-02-10 19:18  uve            Plateforme                => Linux           
01-02-10 19:18  uve            OS                        => Ubuntu          
01-02-10 19:18  uve            Version OS                => 9.10  (amd64)   
01-02-10 19:18  uve            Unstable Impact           => Yes             
01-02-10 19:18  uve            Version GTK               => 2.18.3-1ubuntu2.1
01-02-10 19:27  uve            Note Added: 0001577                          
01-03-10 17:16  pbiava         Status                   new => assigned     
01-03-10 17:16  pbiava         Assigned To               => pbiava          
01-03-10 17:25  pbiava         Note Added: 0001584                          
01-03-10 19:06  uve            Note Added: 0001594                          
01-03-10 21:32  pbiava         Note Added: 0001600                          
01-04-10 14:45  uve            Note Added: 0001604                          
======================================================================



More information about the bugsreports mailing list