When loading a scheduled transaction, load the transactions associated with it.

Otherwise, the scheduled transaction won't be created.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17916 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff 2009-02-14 23:22:18 +00:00
parent 3b8fc6c0a6
commit aa73788d85

View File

@ -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 @@ load_single_sx( GncSqlBackend* be, GncSqlRow* row )
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;
}