Wrong currency for auto-created accounts
Reported by Virgil Dupras | May 15th, 2012 @ 01:37 PM
Under Qt, auto-created accounts are of the wrong currency. Steps to reproduce:
- Create a document.
- Make its native currency a different currency (for example, EUR).
- Create a transaction with non-existant account names in From and To.
- These accounts will be created as USD.
The strange thing is that it only happens under Qt...
Comments and changes to this ticket
-
Virgil Dupras May 15th, 2012 @ 03:42 PM
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.
-
Virgil Dupras May 15th, 2012 @ 03:42 PM
- Assigned user set to Virgil Dupras
-
Virgil Dupras May 15th, 2012 @ 03:46 PM
Hum, no, under Windows I don't get it either with a brand new document, only with the document I had created earlier...
-
Virgil Dupras May 15th, 2012 @ 03:55 PM
- Tag changed from bug, currency, qt to bug, currency
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. -
Virgil Dupras May 15th, 2012 @ 04:13 PM
- State changed from accepted to fixed
(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/
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป