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

Wrong currency for auto-created accounts #327

Closed
hsoft opened this Issue Jun 22, 2013 · 4 comments

Comments

Projects
None yet
1 participant
@hsoft
Owner

hsoft commented Jun 22, 2013

Under Qt, auto-created accounts are of the wrong currency. Steps to reproduce:

  1. Create a document.
  2. Make its native currency a different currency (for example, EUR).
  3. Create a transaction with non-existant account names in From and To.
  4. These accounts will be created as USD.

The strange thing is that it only happens under Qt...

@hsoft hsoft closed this Jun 22, 2013

@hsoft

This comment has been minimized.

Owner

hsoft commented Jun 22, 2013

Things are getting a little weirder: The bug seems not to be related to Qt, but rather to Windows. I can't reproduce the bug under Ubuntu or OS X/Qt.

@hsoft

This comment has been minimized.

Owner

hsoft commented Jun 22, 2013

Hum, no, under Windows I don't get it either with a brand new document, only with the document I had created earlier...

@hsoft

This comment has been minimized.

Owner

hsoft commented Jun 22, 2013

Ooh, root causes are always very obvious in retrospective. This has nothing to do with Qt or platform. It's because Document.accounts.default_currency isn't set on document loading so that when loading a document with a currency that differs from the system currency, we'll have problem with auto-created accounts.

@hsoft

This comment has been minimized.

Owner

hsoft commented Jun 22, 2013

(from [af8668e70234]) [#327 state:fixed] Fixed a bug causing auto-created accounts to be of the wrong currency.
https://bitbucket.org/hsoft/moneyguru/changeset/af8668e70234/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment