Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Currencies, Export Multiple QIF files #218

Closed
webmanoffesto opened this issue Sep 17, 2014 · 11 comments
Closed

Multiple Currencies, Export Multiple QIF files #218

webmanoffesto opened this issue Sep 17, 2014 · 11 comments

Comments

@webmanoffesto
Copy link

Derek Atkins wrote:

You will need to get the accounts in different currencies exported into
different QIF files. Unfortunately that is the only way. QIF does not
have any way to specify a currency, so there's really nothing we can do.

The QIF format does not mark currency. When you import a QIF into GnuCash Desktop you may select one (and only one) currency per import, and that is applied to all transactions in that import.

Therefore, GnuCash Android needs to be able to export multiple QIF files. If a user of GnuCash is using two different currencies then he/she should be able to (with one click) export two QIF files (one for currency A, and one for currency B). The user will then do two imports into GnuCash Desktop, and select the correct currency for each QIF file imported.

@codinguser
Copy link
Owner

I think what you propose is a good idea.

@webmanoffesto
Copy link
Author

Thank you.

I'm not a programmer. Would you be willing to write a script that I could run on my exported QIF, to create two QIF's by currency. Maybe later you could implement that in the GnuCash Android app.

@fefe982
Copy link
Contributor

fefe982 commented Sep 17, 2014

The currency information is already gone in the QIF file, so there is no way to identify which transaction is which currency in the exported file. There for, it will be impossible to split the QIF file by currency.

@codinguser
Copy link
Owner

I'm sorry, but your exported QIF does not have currency information. There will be no basis upon which to split the file. This is something that will have to be implemented in GnuCash Android which knows about the account currencies, and that will not be immediately. Sorry.

@codinguser
Copy link
Owner

@fefe982 you beat me to it :)

@webmanoffesto
Copy link
Author

There are work-arounds (e.g. name accounts "#Yen#_Checking", "#Yen#_Saving", "#USD#_Checking", "#USD#_Saving", etc.). Then the script to splits the QIF file according to the "#" tags I put in the account names. The result being two or more QIFs, which can then be imported separately into GnuCash Desktop.

Or I just specify in the script that "Bank of China Checking" (Yen), and "Bank of America Checking" (USD) need to be output to two separate .QIF files.

@webmanoffesto
Copy link
Author

Geert Janssens wrote:
http://lists.gnucash.org/pipermail/gnucash-user/2014-September/056138.html
"I do advise you though to file a bug report against GnuCash on Android. If qif doesn't support multiple currencies, GoA shouldn't be generating such qif files. It should be up to GoA to generate separate qif files, one per currency.
.- For me this is backwards for the reason I mentioned before. If I understand it correctly there shouldn't be any qif files with multiple currencies. The fact that Gnucash on Android generates them is a bug.
.- Disclaimer: I don't know zip about qif. My reaction is purely based on what I read in this thread. So if I'm really talking nonsense, you are free to tell me so :)"

No, I think Geert understands the QIF file format well.

@fefe982
Copy link
Contributor

fefe982 commented Sep 17, 2014

Thank you. I'm on that list too :)

That will be planned, but I'm sure when it can be rolled out.

@webmanoffesto
Copy link
Author

Thank you for all your quick responses. I look forward to seeing this feature in GnuCash Android.

@webmanoffesto
Copy link
Author

I guess the decision to use QIF (the lesser evil between QIF and OFX) was bound to lead to some setbacks.
https://github.com/Gnucash/gnucash/blob/master/src/import-export/qif-imp/file-format.txt
"The QIF is an old and rather broken file format defined by Intuit for exporting Quicken data. It is 'broken' because the format is ambiguous in many places, non-standard between different releases and applications, and even varies subtly from country to country (in particular, the way dates and amounts are represented), and fails to define important data (such as the currency denomination, or the exchange rates when transferring between accounts marked in different currencies). Importing a QIF file can require significant manual intervention by the user in order to get the data straight."

@webmanoffesto
Copy link
Author

Today I went to export my transactions and I was excited to see "A separate QIF file will be generated for each currency in use". I use two currencies, so I was left with two files. Then, using GnuCash Desktop I did two separate imports, selecting the appropriate currency for each file. It worked great! Thank you to the GnuCash Android team.

rivaldi8 added a commit to rivaldi8/gnucash-android that referenced this issue Nov 10, 2016
As QIF doesn't support currencies, they were excluded. See related
issue:

codinguser#218

Fixes codinguser#571
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants