mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
7405f2485d
commit
3c716e5c18
@ -68,6 +68,7 @@ static const GncSqlColumnTableEntry col_table[] =
|
|||||||
};
|
};
|
||||||
|
|
||||||
static /*@ dependent @*//*@ null @*/ QofInstance* get_budget( gpointer pObj );
|
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 /*@ dependent @*//*@ null @*/ QofInstance* get_account( gpointer pObj );
|
||||||
static void set_account( gpointer pObj, gpointer val );
|
static void set_account( gpointer pObj, gpointer val );
|
||||||
static gint get_period_num( gpointer pObj );
|
static gint get_period_num( gpointer pObj );
|
||||||
@ -86,7 +87,7 @@ static const GncSqlColumnTableEntry budget_amounts_col_table[] =
|
|||||||
/*@ -full_init_block @*/
|
/*@ -full_init_block @*/
|
||||||
{ "id", CT_INT, 0, COL_NNUL|COL_PKEY|COL_AUTOINC },
|
{ "id", CT_INT, 0, COL_NNUL|COL_PKEY|COL_AUTOINC },
|
||||||
{ "budget_guid", CT_BUDGETREF, 0, COL_NNUL, NULL, NULL,
|
{ "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,
|
{ "account_guid", CT_ACCOUNTREF, 0, COL_NNUL, NULL, NULL,
|
||||||
(QofAccessFunc)get_account, (QofSetterFunc)set_account },
|
(QofAccessFunc)get_account, (QofSetterFunc)set_account },
|
||||||
{ "period_num", CT_INT, 0, COL_NNUL, NULL, NULL,
|
{ "period_num", CT_INT, 0, COL_NNUL, NULL, NULL,
|
||||||
@ -108,6 +109,11 @@ get_budget( gpointer pObj )
|
|||||||
return QOF_INSTANCE(info->budget);
|
return QOF_INSTANCE(info->budget);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
set_budget( gpointer pObj, gpointer val )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
static /*@ dependent @*//*@ null @*/ QofInstance*
|
static /*@ dependent @*//*@ null @*/ QofInstance*
|
||||||
get_account( gpointer pObj )
|
get_account( gpointer pObj )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user