r17916 - gnucash/trunk/src/backend/sql - When loading a scheduled transaction, load the transactions associated with it.

Phil Longstaff plongstaff at cvs.gnucash.org
Sat Feb 14 18:22:18 EST 2009


Author: plongstaff
Date: 2009-02-14 18:22:18 -0500 (Sat, 14 Feb 2009)
New Revision: 17916
Trac: http://svn.gnucash.org/trac/changeset/17916

Modified:
   gnucash/trunk/src/backend/sql/gnc-schedxaction-sql.c
Log:
When loading a scheduled transaction, load the transactions associated with it.
Otherwise, the scheduled transaction won't be created.


Modified: gnucash/trunk/src/backend/sql/gnc-schedxaction-sql.c
===================================================================
--- gnucash/trunk/src/backend/sql/gnc-schedxaction-sql.c	2009-02-14 21:34:18 UTC (rev 17915)
+++ gnucash/trunk/src/backend/sql/gnc-schedxaction-sql.c	2009-02-14 23:22:18 UTC (rev 17916)
@@ -42,6 +42,7 @@
 #include "Recurrence.h"
 
 #include "gnc-recurrence-sql.h"
+#include "gnc-transaction-sql.h"
 
 #define SCHEDXACTION_TABLE "schedxactions"
 #define TABLE_VERSION 1
@@ -204,6 +205,7 @@
 	gnc_sql_recurrence_load_list( be, guid, &schedule );
 	gnc_sx_set_schedule( pSx, schedule );
 	gnc_sx_commit_edit( pSx );
+	gnc_sql_transaction_load_tx_for_account( be, pSx->template_acct );
 
     return pSx;
 }



More information about the gnucash-changes mailing list