r18067 - gnucash/trunk/src/import-export/qif-import - 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.

Charles Day cedayiv at code.gnucash.org
Wed May 6 16:34:34 EDT 2009


Author: cedayiv
Date: 2009-05-06 16:34:33 -0400 (Wed, 06 May 2009)
New Revision: 18067
Trac: http://svn.gnucash.org/trac/changeset/18067

Modified:
   gnucash/trunk/src/import-export/qif-import/qif-to-gnc.scm
Log:
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.


Modified: gnucash/trunk/src/import-export/qif-import/qif-to-gnc.scm
===================================================================
--- gnucash/trunk/src/import-export/qif-import/qif-to-gnc.scm	2009-05-01 23:38:32 UTC (rev 18066)
+++ gnucash/trunk/src/import-export/qif-import/qif-to-gnc.scm	2009-05-06 20:34:33 UTC (rev 18067)
@@ -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



More information about the gnucash-changes mailing list