Fix parent/child relationships in tax tables when loading from db.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gda-dev2@17422 57a11ea4-9604-0410-9ed3-97b8803252fd
archive
Phil Longstaff 18 years ago committed by John Ralls
parent 1c9fcf9a7e
commit 131edd26d3

@ -70,8 +70,8 @@ static GncSqlColumnTableEntry tt_col_table[] =
{ "refcount", CT_INT64, 0, COL_NNUL, NULL, GNC_TT_REFCOUNT },
{ "invisible", CT_BOOLEAN, 0, COL_NNUL, NULL, NULL,
(QofAccessFunc)gncTaxTableGetInvisible, (QofSetterFunc)set_invisible },
{ "child", CT_TAXTABLEREF, 0, 0, NULL, NULL,
get_child, (QofSetterFunc)gncTaxTableSetChild },
/* { "child", CT_TAXTABLEREF, 0, 0, NULL, NULL,
get_child, (QofSetterFunc)gncTaxTableSetChild }, */
{ "parent", CT_TAXTABLEREF, 0, 0, NULL, NULL,
(QofAccessFunc)gncTaxTableGetParent, set_parent },
{ NULL }
@ -153,6 +153,7 @@ set_parent( gpointer data, gpointer value )
if( value != NULL ) {
parent = GNC_TAXTABLE(value);
gncTaxTableSetParent( tt, parent );
gncTaxTableSetChild( parent, tt );
}
}

Loading…
Cancel
Save