Reports are always in USD

Derek Atkins warlord@MIT.EDU
24 Jul 2002 17:46:17 -0400


Christian Krause <chkr@plauener.de> writes:

> Ok, I found the changes in CVS. This explains why gnucash-1.6.6 works.
> 
> 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.

Hmm.. I wonder who made this change, and why?

> >> I think the currency of the reports should be the configured default
> >> currency of gnucash and should not depend on my locale settings.
> 
> > "configured default currency of gnucash"?  There is a problem here,
> > because you could have multiple books that use different default
> > currencies.  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.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available