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 87729 - default currency in book (Reports always in USD)
default currency in book (Reports always in USD)
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: Reports
git-master
Other other
: Normal normal
: ---
Assigned To: Derek Atkins
Derek Atkins
: 99364 100466 102043 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-07-09 10:23 UTC by Christian Krause
Modified: 2018-06-29 20:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
implements "default currency" per book (1.98 KB, patch)
2002-08-02 22:19 UTC, Christian Krause
none Details | Review

Description Christian Krause 2002-07-09 10:23:53 UTC
Hi,

all reports are always in USD, even if the default currency is e.g. EUR.

Changing the currency of the report via options work.

How to reproduce:
- Open a new File
- Change the default currency to EUR
- Create a new account
- add some money to the account
- Try the "Welcome Extravaganza" Report

The account summary is in USD.

The bug was not in gnucash 1.6.6.

regards,
christian
Comment 1 Christian Krause 2002-07-30 21:24:56 UTC
The was triggered by the patch below. The patch changed where the
default currency used in reports comes from. In gnucash-1.6.x it was
the global gnucash default currency and now it depends on the locale
settings. 

But this doesn't work.

gnucash$ cvs diff -r 1.1 -r 1.2 
src/report/report-system/options-utilities.scm 
Index: src/report/report-system/options-utilities.scm
===================================================================
RCS file:
/home/cvs/cvsroot/gnucash/src/report/report-system/options-utilities.scm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- src/report/report-system/options-utilities.scm      17 Aug 2001
00:43:31 -0000      1.1
+++ src/report/report-system/options-utilities.scm      3 Oct 2001
10:07:43 -0000       1.2
@@ -197,7 +197,7 @@
     pagename name-report-currency
     sort-tag 
     (N_ "Select the currency to display the values of this report in.")
-    (gnc:default-currency))))
+    (gnc:locale-default-iso-currency-code))))

 ;; These are common options for the selection of the report's
 ;; currency/commodity.


The problem was discussed on the mailinglist and Derek proposed the
following:

> > Perhaps the default currency should be stored in the book
> > instead of some global option?
> 
> IMHO this would be the best solution... 

Well, we now have this nice "options" interface to do this :) The data
would be stored in the Book KVP, but edited via a nice options dialog
out of File -> Properties.  Someone would just need to move the
location where this menu option is created, and add a new page to set
default currencies et. al.   And then change the report-options code.
Comment 2 Christian Krause 2002-08-02 22:17:34 UTC
According to Derek's proposed solution, I implemented the "default
currency option stored in the book".

The global "default currency" still exists...

The attached patch works fine (for me ;-) ), all reports are done in
the book default currency.


regards,
christian
Comment 3 Christian Krause 2002-08-02 22:19:14 UTC
Created attachment 10233 [details] [review]
implements "default currency" per book
Comment 4 Derek Atkins 2002-10-03 17:55:45 UTC
The reports always being in USD was solved by fixing 89471.  Now
reports will follow the locale.  There is still the question of the
default currency, however, so I'm going to keep this bug open until we
figure out how that should work.
Comment 5 Derek Atkins 2002-10-03 19:56:16 UTC
<_chkr_> yes, the bug 87729 is solved with the changes to the other
bug... (I was the reporter... ;) )
Comment 6 Christian Stimming 2002-11-25 14:46:12 UTC
*** Bug 99364 has been marked as a duplicate of this bug. ***
Comment 7 Christian Stimming 2002-12-06 12:14:48 UTC
*** Bug 100466 has been marked as a duplicate of this bug. ***
Comment 8 Christian Stimming 2002-12-28 12:57:03 UTC
*** Bug 102043 has been marked as a duplicate of this bug. ***
Comment 9 John Ralls 2018-06-29 20:13:51 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=87729. Please update any external references or bookmarks.