From 1eadc9c581d12ef3d1b05ee955a40745292e7d54 Mon Sep 17 00:00:00 2001 From: Charles Day Date: Wed, 6 May 2009 20:34:33 +0000 Subject: [PATCH] QIF Import: Create transactions in the user-specified currency rather than the default currency. For example, if the default currency is pesos and the user has specified that the QIF transactions are all USD, the transaction currency should be USD too. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18067 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/import-export/qif-import/qif-to-gnc.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/import-export/qif-import/qif-to-gnc.scm b/src/import-export/qif-import/qif-to-gnc.scm index 0f0a53566f..7403231910 100644 --- a/src/import-export/qif-import/qif-to-gnc.scm +++ b/src/import-export/qif-import/qif-to-gnc.scm @@ -379,8 +379,9 @@ (gnc-get-current-book)))) (xaccTransBeginEdit gnc-xtn) - ;; FIXME. This is probably wrong - (xaccTransSetCurrency gnc-xtn (gnc-default-currency)) + ;; All accounts & splits are required to be in the + ;; user-specified currency. Use it for the txn too. + (xaccTransSetCurrency gnc-xtn default-currency) ;; Build the transaction. (qif-import:qif-xtn-to-gnc-xtn xtn qif-file gnc-xtn