Commit 42b4fa66 authored by Maxime Doyen's avatar Maxime Doyen

5.0.6 beta1

parent 3c080ecf
...@@ -3,6 +3,4 @@ imagesdir = $(datadir)/homebank/help/images ...@@ -3,6 +3,4 @@ imagesdir = $(datadir)/homebank/help/images
images_DATA = images_DATA =
EXTRA_DIST = $(images_DATA) EXTRA_DIST = $(images_DATA)
...@@ -744,22 +744,22 @@ GList *list = NULL; ...@@ -744,22 +744,22 @@ GList *list = NULL;
{ {
QIFSplit *s = &item->splits[nsplit]; QIFSplit *s = &item->splits[nsplit];
Split *hbs; Split *hbs;
guint32 kcat = 0;
DB( g_print(" -> append split %d: '%s' '%.2f' '%s'\n", nsplit, s->category, s->amount, s->memo) ); DB( g_print(" -> append split %d: '%s' '%.2f' '%s'\n", nsplit, s->category, s->amount, s->memo) );
if( s->category != NULL ) if( s->category != NULL )
{ {
catitem = da_cat_append_ifnew_by_fullname(s->category, TRUE ); // TRUE = imported catitem = da_cat_append_ifnew_by_fullname(s->category, TRUE ); // TRUE = imported
if( catitem != NULL ) if( catitem != NULL )
{ {
DB( g_print(" -> append ok\n" ) ); kcat = catitem->key;
hbs = da_split_new(catitem->key, s->amount, s->memo);
da_transaction_splits_append(newope, hbs);
hbs = NULL;
} }
} }
hbs = da_split_new(kcat, s->amount, s->memo);
da_transaction_splits_append(newope, hbs);
hbs = NULL;
} }
} }
......
...@@ -1091,7 +1091,7 @@ gint changes = 0; ...@@ -1091,7 +1091,7 @@ gint changes = 0;
if(split->kcat != rul->kcat) { changed = TRUE; } if(split->kcat != rul->kcat) { changed = TRUE; }
split->kcat = rul->kcat; split->kcat = rul->kcat;
} }
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment