r20633 - gnucash/trunk/src/app-utils - Bug #649608: Skip non-enabled Scheduled Transactions for Future Txn report

Christian Stimming cstim at code.gnucash.org
Thu May 12 14:13:41 EDT 2011


Author: cstim
Date: 2011-05-12 14:13:41 -0400 (Thu, 12 May 2011)
New Revision: 20633
Trac: http://svn.gnucash.org/trac/changeset/20633

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

Modified: gnucash/trunk/src/app-utils/gnc-sx-instance-model.c
===================================================================
--- gnucash/trunk/src/app-utils/gnc-sx-instance-model.c	2011-05-12 16:11:09 UTC (rev 20632)
+++ gnucash/trunk/src/app-utils/gnc-sx-instance-model.c	2011-05-12 18:13:41 UTC (rev 20633)
@@ -1673,6 +1673,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