Fix CRIT messages when loading budgets

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18254 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff 2009-08-16 17:09:28 +00:00
parent 7405f2485d
commit 3c716e5c18

View File

@ -68,6 +68,7 @@ static const GncSqlColumnTableEntry col_table[] =
};
static /*@ dependent @*//*@ null @*/ QofInstance* get_budget( gpointer pObj );
static void set_budget( gpointer pObj, gpointer val );
static /*@ dependent @*//*@ null @*/ QofInstance* get_account( gpointer pObj );
static void set_account( gpointer pObj, gpointer val );
static gint get_period_num( gpointer pObj );
@ -86,7 +87,7 @@ static const GncSqlColumnTableEntry budget_amounts_col_table[] =
/*@ -full_init_block @*/
{ "id", CT_INT, 0, COL_NNUL|COL_PKEY|COL_AUTOINC },
{ "budget_guid", CT_BUDGETREF, 0, COL_NNUL, NULL, NULL,
(QofAccessFunc)get_budget },
(QofAccessFunc)get_budget, (QofSetterFunc)set_budget },
{ "account_guid", CT_ACCOUNTREF, 0, COL_NNUL, NULL, NULL,
(QofAccessFunc)get_account, (QofSetterFunc)set_account },
{ "period_num", CT_INT, 0, COL_NNUL, NULL, NULL,
@ -108,6 +109,11 @@ get_budget( gpointer pObj )
return QOF_INSTANCE(info->budget);
}
static void
set_budget( gpointer pObj, gpointer val )
{
}
static /*@ dependent @*//*@ null @*/ QofInstance*
get_account( gpointer pObj )
{