mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
afa7bcd47c
commit
1eadc9c581
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user