r20640 - gnucash/branches/2.4/src/app-utils - [20612] Bug #649608: Skip non-enabled Scheduled Transactions for Future Txn report

Christian Stimming cstim at code.gnucash.org
Fri May 13 16:21:59 EDT 2011


Author: cstim
Date: 2011-05-13 16:21:59 -0400 (Fri, 13 May 2011)
New Revision: 20640
Trac: http://svn.gnucash.org/trac/changeset/20640

Modified:
   gnucash/branches/2.4/src/app-utils/gnc-sx-instance-model.c
Log:
[20612] Bug #649608: Skip non-enabled Scheduled Transactions for Future Txn report

Modified: gnucash/branches/2.4/src/app-utils/gnc-sx-instance-model.c
===================================================================
--- gnucash/branches/2.4/src/app-utils/gnc-sx-instance-model.c	2011-05-13 20:17:50 UTC (rev 20639)
+++ gnucash/branches/2.4/src/app-utils/gnc-sx-instance-model.c	2011-05-13 20:21:59 UTC (rev 20640)
@@ -1666,6 +1666,13 @@
         return;
     }
 
+    if (!xaccSchedXactionGetEnabled(sx))
+    {
+        g_debug("Skipping non-enabled SX [%s]",
+                xaccSchedXactionGetName(sx));
+        return;
+    }
+
     create_cashflow_data.hash = map;
     create_cashflow_data.creation_errors = creation_errors;
     create_cashflow_data.sx = sx;



More information about the gnucash-changes mailing list