Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

Wrong currency for auto-created accounts

#327

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...

Reported by Virgil Dupras · May 15th, 2012 @ 01:37 PM

State: fixed
Milestone: none
Assigned to: Virgil Dupras Virgil Dupras

Activity

  1. Virgil Dupras
    Virgil Dupras

    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.

    May 15th, 2012 @ 03:42 PM

  2. Virgil Dupras
    Virgil Dupras
    • Assigned user set to Virgil Dupras

    May 15th, 2012 @ 03:42 PM

  3. Virgil Dupras
    Virgil Dupras

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

    May 15th, 2012 @ 03:46 PM

  4. Virgil Dupras
    Virgil Dupras
    • 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.

    May 15th, 2012 @ 03:55 PM

  5. Virgil Dupras
    Virgil Dupras
    • State changed from accepted to fixed

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

    May 15th, 2012 @ 04:13 PM

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.