mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-10-12 17:32:00 -05:00
Bug #669964: Fix txn creation that forgot to set a txn currency.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23058 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
1 parent
9b093abc4a
commit
d8a0015a3c
1 file changed
+4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user