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

Christian Stimming cstim at code.gnucash.org
Sat May 7 12:26:26 EDT 2011


Author: cstim
Date: 2011-05-07 12:26:25 -0400 (Sat, 07 May 2011)
New Revision: 20612
Trac: http://svn.gnucash.org/trac/changeset/20612

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

BP

Modified: gnucash/trunk/src/app-utils/gnc-sx-instance-model.c
===================================================================
--- gnucash/trunk/src/app-utils/gnc-sx-instance-model.c	2011-05-06 00:02:54 UTC (rev 20611)
+++ gnucash/trunk/src/app-utils/gnc-sx-instance-model.c	2011-05-07 16:26:25 UTC (rev 20612)
@@ -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