[grisbi-cvs] grisbi/src gsb_file_load.c,1.197,1.198

Pierre Biava pbiava at users.sourceforge.net
Sat Dec 19 17:07:48 CET 2009


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

Modified Files:
	gsb_file_load.c 
Log Message:
Fixed amount of reconciliations. There may remain some errors

Index: gsb_file_load.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_file_load.c,v
retrieving revision 1.197
retrieving revision 1.198
diff -u -d -r1.197 -r1.198
--- gsb_file_load.c	19 Dec 2009 07:26:37 -0000	1.197
+++ gsb_file_load.c	19 Dec 2009 16:07:46 -0000	1.198
@@ -6194,8 +6194,7 @@
     {
         buffer_reconcile_conversion -> reconcile_number = utils_str_atoi ( text);
         buffer_reconcile_conversion -> account_number = account_number;
-        if ( utils_str_atoi ( text) > 0 )
-            reconcile_conversion_list = g_slist_append ( reconcile_conversion_list,
+        reconcile_conversion_list = g_slist_append ( reconcile_conversion_list,
                                  buffer_reconcile_conversion );
         buffer_reconcile_conversion = NULL;
     }
@@ -7726,7 +7725,8 @@
                         transaction_number);
                 if ( reconcile_number == 0 )
                 {
-                    if ( gsb_data_reconcile_get_account_last_number ( account_number ) == 0 )
+                    if ( ( reconcile_number = gsb_data_reconcile_get_account_last_number (
+                     account_number ) ) == 0 )
                     {
                         reconcile_number = gsb_data_reconcile_new (NULL);
                         gsb_data_reconcile_set_account ( reconcile_number, -1 );



More information about the cvs mailing list