mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
3b8fc6c0a6
commit
aa73788d85
@ -42,6 +42,7 @@
|
|||||||
#include "Recurrence.h"
|
#include "Recurrence.h"
|
||||||
|
|
||||||
#include "gnc-recurrence-sql.h"
|
#include "gnc-recurrence-sql.h"
|
||||||
|
#include "gnc-transaction-sql.h"
|
||||||
|
|
||||||
#define SCHEDXACTION_TABLE "schedxactions"
|
#define SCHEDXACTION_TABLE "schedxactions"
|
||||||
#define TABLE_VERSION 1
|
#define TABLE_VERSION 1
|
||||||
@ -204,6 +205,7 @@ load_single_sx( GncSqlBackend* be, GncSqlRow* row )
|
|||||||
gnc_sql_recurrence_load_list( be, guid, &schedule );
|
gnc_sql_recurrence_load_list( be, guid, &schedule );
|
||||||
gnc_sx_set_schedule( pSx, schedule );
|
gnc_sx_set_schedule( pSx, schedule );
|
||||||
gnc_sx_commit_edit( pSx );
|
gnc_sx_commit_edit( pSx );
|
||||||
|
gnc_sql_transaction_load_tx_for_account( be, pSx->template_acct );
|
||||||
|
|
||||||
return pSx;
|
return pSx;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user