r23585 - gnucash/trunk/src/register/ledger-core - Suppress other register's blank transactions from General Ledger

John Ralls jralls at code.gnucash.org
Thu Dec 19 19:44:51 EST 2013


Author: jralls
Date: 2013-12-19 19:44:51 -0500 (Thu, 19 Dec 2013)
New Revision: 23585
Trac: http://svn.gnucash.org/trac/changeset/23585

Modified:
   gnucash/trunk/src/register/ledger-core/split-register-load.c
Log:
Suppress other register's blank transactions from General Ledger

Modified: gnucash/trunk/src/register/ledger-core/split-register-load.c
===================================================================
--- gnucash/trunk/src/register/ledger-core/split-register-load.c	2013-12-20 00:44:43 UTC (rev 23584)
+++ gnucash/trunk/src/register/ledger-core/split-register-load.c	2013-12-20 00:44:51 UTC (rev 23585)
@@ -499,7 +499,14 @@
 
         if (pending_trans == trans)
             found_pending = TRUE;
+	/* If the transaction has only one split, and it's not our
+	 * pending_trans, then it's another register's blank split and
+	 * we don't want to see it.
+	 */
+	else if (xaccTransCountSplits (trans) < 2)
+	    continue;
 
+
         /* Do not load splits from the blank transaction. */
         if (trans == blank_trans)
             continue;



More information about the gnucash-changes mailing list