Skip to content

Commit

Permalink
Bug #669964: Fix txn creation that forgot to set a txn currency.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23058 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information
cstim committed Jun 19, 2013
1 parent 9b093ab commit d8a0015
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/import-export/log-replay/gnc-log-replay.c
Expand Up @@ -479,6 +479,10 @@ static void process_trans_record( FILE *log_file)
{
acct = xaccAccountLookupDirect(record.acc_guid, book);
xaccAccountInsertSplit(acct, split);

// No currency in the txn yet? Set one now.
if (!xaccTransGetCurrency(trans))
xaccTransSetCurrency(trans, gnc_account_or_default_currency(acct, NULL));
}
if (is_new_split)
xaccTransAppendSplit(trans, split);
Expand Down

0 comments on commit d8a0015

Please sign in to comment.