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
This commit is contained in:
Charles Day 2009-05-06 20:34:33 +00:00
parent afa7bcd47c
commit 1eadc9c581

View File

@ -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