> On Oct 2, 2019, at 10:54 AM, Ed Boivin <ed.boi...@hotmail.com> wrote: > > I'm another Ed and am experiencing the same issue with the Investment > Portfolio report. Was working fine until the upgrade to V3.7. > > Here is what is in my trace file after trying to run the report: > In procedure module-lookup: Unbound variable: report-currency > * 13:35:47 WARN <qof> [gnc_numeric_to_decimal()] Rounding required when > 'never round' specified. > * 13:44:52 WARN <gnc.core-utils> Could not locate file AUTHORS > * 13:44:52 WARN <gnc.core-utils> Could not locate file DOCUMENTERS > * 13:44:52 WARN <gnc.core-utils> Could not locate file LICENSE > * 13:51:28 WARN <gnc.scm> 14 (apply-smob/1 #<catch-closure > e3cd160>) > In c-interface.scm: > 22:4 13 (gnc:call-with-error-handling _ _) > In ice-9/boot-9.scm: > 829:9 12 (catch #t #<procedure 10e97750 at c-interface.scm:23:6…> …) > In c-interface.scm: > 27:37 11 (_) > In unknown file: > 10 (eval-string "(gnc:report-run 10)" #<undefined>) > In ice-9/boot-9.scm: > 2312:4 9 (save-module-excursion #<procedure 10ddfeb0 at ice-9/ev…>) > In ice-9/eval-string.scm: > 38:6 8 (read-and-eval #<input: string 10e1c930> #:lang _) > In report.scm: > 776:4 7 (gnc:report-run _) > In c-interface.scm: > 64:23 6 (gnc:backtrace-if-exception _ . _) > 22:4 5 (gnc:call-with-error-handling _ _) > In ice-9/boot-9.scm: > 829:9 4 (catch #t #<procedure 10e97708 at c-interface.scm:23:6…> …) > In c-interface.scm: > 26:40 3 (_) > In report.scm: > 780:24 2 (_) > 756:25 1 (gnc:report-render-html #<<report> type: 4a6b82e8678c4…> …) > In portfolio.scm: > 198:32 0 (portfolio-renderer #<<report> type: 4a6b82e8678c4f3d9e…>) > > In procedure module-lookup: Unbound variable: report-currency > > Any help is appreciated! > > Thanks, > Ed (the other one)
Chris Lam explained that and offered a fix a week ago: > On Sep 24, 2019, at 8:03 AM, Christopher Lam <christopher....@gmail.com> > wrote: > > There's an error in portfolio.scm -- modify the 'report-currency' to > 'currency' and it should be fine > > modified gnucash/report/standard-reports/portfolio.scm > @@ -196,7 +196,7 @@ > (if (not (null? accounts)) > (let* ((commodity-list (gnc:accounts-get-commodities > (gnc:accounts-and-all-descendants accounts) > - report-currency)) > + currency)) > (pricedb (gnc-pricedb-get-db (gnc-get-current-book))) > (exchange-fn (gnc:case-exchange-fn price-source currency to-date)) > That part of GnuCash is interpreted so you can apply the fix (which is to replace "report-currency" with "currency" on line 199 of XXX/share/gnucash/scm/gnucash/reports/standard-reports/portfolio.scm. The XXX at the front is the install prefix for GnuCash: On Linux it's either /usr or /opt, on Windows by default it's C:/Program Files (x86)/gnucash/, and on MacOS the default is /Applications/Gnucash.app/Contents/Resources. Regards, John Ralls _______________________________________________ gnucash-user mailing list gnucash-user@gnucash.org To update your subscription preferences or to unsubscribe: https://lists.gnucash.org/mailman/listinfo/gnucash-user If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information. ----- Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All.