After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 651889 - Using trading accounts, new non-expanded trading transaction shows inverted rates in exchange dialog
Using trading accounts, new non-expanded trading transaction shows inverted r...
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Register
2.4.x
Other Linux
: Normal normal
: ---
Assigned To: Christian Stimming
Geert Janssens
Depends on:
Blocks:
 
 
Reported: 2011-06-04 21:50 UTC by Mathieu De Zutter
Modified: 2018-06-29 22:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (3.45 KB, patch)
2011-06-04 21:50 UTC, Mathieu De Zutter
committed Details | Review

Description Mathieu De Zutter 2011-06-04 21:50:40 UTC
Created attachment 189240 [details] [review]
Patch

With the option "trading accounts" enabled:

If you create a new trading transaction in-line, you obviously enter the amount in the currency of the current account. The exchange dialog will however ask for a rate to convert from the target currency to the current one instead of the inverse. This is especially annoying when you want to specify a "to" amount instead of a rate.

Attached is a patch that solves this.

Note that the following already works perfectly, and is not affected by this patch:
- creating a new transaction with the transaction dialog
- creating a new transaction in-line, in expanded mode

Also note that I cannot explain why the amounts have to be negated in some cases.
Comment 1 Mathieu De Zutter 2011-06-05 21:44:08 UTC
Probably the same issue as bug 641863.
Comment 2 Geert Janssens 2011-06-21 09:58:54 UTC
Comment on attachment 189240 [details] [review]
Patch

In r20783. I have also marked this one for backporting to 2.4.
Thanks a lot !
Comment 3 Geert Janssens 2011-06-21 12:03:27 UTC
...and backported to r20788 on the 2.4 branch by Christian.

The GnuCash project looks forward to your additional contributions :)
Comment 4 John Ralls 2017-09-24 22:41:28 UTC
Reassign version to 2.4.x so that individual 2.4 versions can be retired.
Comment 5 John Ralls 2018-06-29 22:58:42 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=651889. Please update any external references or bookmarks.