[grisbi-cvs] grisbi/src gsb_file_load.c,1.194,1.195

Pierre Biava pbiava at users.sourceforge.net
Sun Dec 13 14:02:19 CET 2009


Update of /cvsroot/grisbi/grisbi/src
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv24197

Modified Files:
	gsb_file_load.c 
Log Message:
fixed a minor bug in the reconciliations of transactions

Index: gsb_file_load.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_file_load.c,v
retrieving revision 1.194
retrieving revision 1.195
diff -u -d -r1.194 -r1.195
--- gsb_file_load.c	10 Dec 2009 22:02:32 -0000	1.194
+++ gsb_file_load.c	13 Dec 2009 13:02:16 -0000	1.195
@@ -6165,6 +6165,7 @@
         if (buffer_reconcile_conversion)
         {
             gchar **pointeur_char;
+
             pointeur_char = g_strsplit ( text, "/", 0 );
 
             buffer_reconcile_conversion -> final_date = g_date_new_dmy ( utils_str_atoi ( pointeur_char[0] ),
@@ -6184,9 +6185,11 @@
 
     tmp_string = utils_str_reduce_exponant_from_string ( text,
                                      2 );
+
     if (buffer_reconcile_conversion)
         buffer_reconcile_conversion -> final_balance = gsb_real_import_from_string (tmp_string);
-    if (tmp_string) g_free (tmp_string);
+    if (tmp_string) 
+        g_free (tmp_string);
     return;
     }
 
@@ -6197,7 +6200,8 @@
     {
         buffer_reconcile_conversion -> reconcile_number = utils_str_atoi ( text);
         buffer_reconcile_conversion -> account_number = account_number;
-        reconcile_conversion_list = g_slist_append ( reconcile_conversion_list,
+        if ( utils_str_atoi ( text) > 0 )
+            reconcile_conversion_list = g_slist_append ( reconcile_conversion_list,
                                  buffer_reconcile_conversion );
         buffer_reconcile_conversion = NULL;
     }
@@ -7861,6 +7865,7 @@
                                             reconcile -> account_number );
                     final_date = gsb_data_reconcile_get_final_date ( reconcile_number );
                     ecart_date = g_date_days_between ( final_date, reconcile -> final_date );
+
                     if ( abs (ecart_date) < 10 )
                     {
                         gsb_data_reconcile_set_final_date ( reconcile_number,



More information about the cvs mailing list