git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5695 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas
2001-10-19 08:34:58 +00:00
parent 59c326e2e7
commit fc36b8e1c6
+2 -8
View File
@@ -58,10 +58,8 @@ static gpointer
get_mass_trans_cb (PGBackend *be, PGresult *result, int j, gpointer data)
{
GList *node, *xaction_list = (GList *) data;
Transaction *trans;
gnc_commodity *currency = NULL;
gint64 trans_frac = 0;
Timespec ts;
GUID trans_guid;
@@ -101,13 +99,9 @@ get_mass_trans_cb (PGBackend *be, PGresult *result, int j, gpointer data)
xaccTransSetVersion (trans, atoi(DB_GET_VAL("version",j)));
trans->idata = atoi (DB_GET_VAL("iguid",j));
currency = gnc_string_to_commodity (DB_GET_VAL("currency",j),
be->session);
trans_frac = gnc_commodity_get_fraction (currency);
currency = gnc_string_to_commodity (DB_GET_VAL("currency",j), be->session);
xaccTransSetCurrency (trans,
gnc_string_to_commodity (DB_GET_VAL("currency",j),
be->session));
xaccTransSetCurrency (trans, currency);
/* set timestamp as 'recent' for this data */
trans->version_check = be->version_check;