[grisbi-cvs] grisbi/src gsb_data_reconcile.c, 1.20, 1.21 gsb_data_reconcile.h, 1.11, 1.12 gsb_reconcile.c, 1.42, 1.43

Pierre Biava pbiava at users.sourceforge.net
Sat Dec 5 07:54:45 CET 2009


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

Modified Files:
	gsb_data_reconcile.c gsb_data_reconcile.h gsb_reconcile.c 
Log Message:
fixed a bug in calculating of the reconcile number

Index: gsb_data_reconcile.h
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_data_reconcile.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- gsb_data_reconcile.h	7 Jun 2009 22:18:31 -0000	1.11
+++ gsb_data_reconcile.h	5 Dec 2009 06:54:43 -0000	1.12
@@ -13,6 +13,7 @@
 const GDate *gsb_data_reconcile_get_final_date ( gint reconcile_number );
 gsb_real gsb_data_reconcile_get_init_balance ( gint reconcile_number );
 const GDate *gsb_data_reconcile_get_init_date ( gint reconcile_number );
+
 const gchar *gsb_data_reconcile_get_name ( gint reconcile_number );
 gint gsb_data_reconcile_get_no_reconcile ( gpointer reconcile_ptr );
 gint gsb_data_reconcile_get_number_by_date ( const GDate *date,
@@ -21,6 +22,7 @@
 GList *gsb_data_reconcile_get_reconcile_list ( void );
 GList *gsb_data_reconcile_get_sort_reconcile_list ( gint account_number );
 gboolean gsb_data_reconcile_init_variables ( void );
+gint gsb_data_reconcile_max_number ( void );
 gint gsb_data_reconcile_new ( const gchar *name );
 gboolean gsb_data_reconcile_remove ( gint reconcile_number );
 gboolean gsb_data_reconcile_set_account ( gint reconcile_number,

Index: gsb_data_reconcile.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_data_reconcile.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- gsb_data_reconcile.c	21 Nov 2009 11:06:52 -0000	1.20
+++ gsb_data_reconcile.c	5 Dec 2009 06:54:42 -0000	1.21
@@ -61,7 +61,6 @@
 static gint gsb_data_reconcile_cmp_int (struct_reconcile *reconcile_1,
                         struct_reconcile *reconcile_2);
 static gpointer gsb_data_reconcile_get_structure ( gint reconcile_number );
-static gint gsb_data_reconcile_max_number ( void );
 /*END_STATIC*/
 
 /*START_EXTERN*/

Index: gsb_reconcile.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_reconcile.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- gsb_reconcile.c	3 Oct 2009 22:14:56 -0000	1.42
+++ gsb_reconcile.c	5 Dec 2009 06:54:43 -0000	1.43
@@ -354,7 +354,10 @@
 	g_free (last_name);
     }
     else
-	gtk_entry_set_text ( GTK_ENTRY ( reconcile_number_entry ), "1" );
+    {
+        tmpstr = utils_str_itoa ( gsb_data_reconcile_max_number ( ) + 1 );
+        gtk_entry_set_text ( GTK_ENTRY ( reconcile_number_entry ), tmpstr );
+    }
 
     /* increase the last date of 1 month */
     date = gsb_date_copy (gsb_data_reconcile_get_final_date (reconcile_number));



More information about the cvs mailing list