mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* src/engine/gnc-transaction-xml-v2.c: read & write split action
field git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4045 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
6d90b234f2
commit
2b85080282
@ -1,5 +1,8 @@
|
|||||||
2001-04-25 Dave Peticolas <dave@krondo.com>
|
2001-04-25 Dave Peticolas <dave@krondo.com>
|
||||||
|
|
||||||
|
* src/engine/gnc-transaction-xml-v2.c: read & write split action
|
||||||
|
field
|
||||||
|
|
||||||
* src/gnome/druid-commodity.c: do gncFileNew after gncFileQuit
|
* src/gnome/druid-commodity.c: do gncFileNew after gncFileQuit
|
||||||
|
|
||||||
* src/guile/gnc.gwp: remove pokey functions (not used anymore)
|
* src/guile/gnc.gwp: remove pokey functions (not used anymore)
|
||||||
|
@ -79,6 +79,15 @@ split_to_dom_tree(const gchar *tag, Split *spl)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
const char *action = xaccSplitGetAction(spl);
|
||||||
|
|
||||||
|
if(action && safe_strcmp(action, "") != 0)
|
||||||
|
{
|
||||||
|
xmlNewTextChild(ret, NULL, "split:action", action);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
char tmp[2];
|
char tmp[2];
|
||||||
|
|
||||||
@ -216,6 +225,12 @@ spl_memo_handler(xmlNodePtr node, gpointer spl)
|
|||||||
return set_spl_string(node, (Split*)spl, xaccSplitSetMemo);
|
return set_spl_string(node, (Split*)spl, xaccSplitSetMemo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static gboolean
|
||||||
|
spl_action_handler(xmlNodePtr node, gpointer spl)
|
||||||
|
{
|
||||||
|
return set_spl_string(node, (Split*)spl, xaccSplitSetAction);
|
||||||
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
spl_reconciled_state_handler(xmlNodePtr node, gpointer spl)
|
spl_reconciled_state_handler(xmlNodePtr node, gpointer spl)
|
||||||
{
|
{
|
||||||
@ -283,6 +298,7 @@ struct dom_tree_handler spl_dom_handlers[] =
|
|||||||
{
|
{
|
||||||
{ "split:id", spl_id_handler, 1, 0 },
|
{ "split:id", spl_id_handler, 1, 0 },
|
||||||
{ "split:memo", spl_memo_handler, 0, 0 },
|
{ "split:memo", spl_memo_handler, 0, 0 },
|
||||||
|
{ "split:action", spl_action_handler, 0, 0 },
|
||||||
{ "split:reconciled-state", spl_reconciled_state_handler, 1, 0 },
|
{ "split:reconciled-state", spl_reconciled_state_handler, 1, 0 },
|
||||||
{ "split:reconcile-date", spl_reconcile_date_handler, 0, 0 },
|
{ "split:reconcile-date", spl_reconcile_date_handler, 0, 0 },
|
||||||
{ "split:value", spl_value_handler, 1, 0 },
|
{ "split:value", spl_value_handler, 1, 0 },
|
||||||
|
Loading…
Reference in New Issue
Block a user