[grisbi-cvs] grisbi/src gsb_data_payee.c,1.43,1.44

Pierre Biava pbiava at users.sourceforge.net
Sun Apr 19 01:03:55 CEST 2009


Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv12420

Modified Files:
	gsb_data_payee.c 
Log Message:
fix bug 538

Index: gsb_data_payee.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_data_payee.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- gsb_data_payee.c	7 Apr 2009 21:07:40 -0000	1.43
+++ gsb_data_payee.c	18 Apr 2009 23:03:53 -0000	1.44
@@ -32,6 +32,7 @@
 /*START_INCLUDE*/
 #include "gsb_data_payee.h"
 #include "./gsb_data_report.h"
+#include "./gsb_data_scheduled.h"
 #include "./gsb_data_transaction.h"
 #include "./tiers_onglet.h"
 #include "./gsb_real.h"
@@ -783,6 +784,23 @@
 	tmp_list = tmp_list -> next;
     }
 
+    /* it also scans the list of sheduled transactions. fix bug 538 */
+    tmp_list = gsb_data_scheduled_get_scheduled_list ();
+    while (tmp_list)
+    {
+        gint payee_number;
+
+        payee_number = gsb_data_scheduled_get_party_number (
+                        gsb_data_scheduled_get_scheduled_number (
+                        tmp_list -> data));
+        if (!g_slist_find (used, GINT_TO_POINTER (payee_number)))
+        {
+            used = g_slist_append ( used,
+                        GINT_TO_POINTER (payee_number));
+        }
+        tmp_list = tmp_list -> next;
+    }
+
     if (!used)
 	return 0;
 



More information about the cvs mailing list