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 153019 - Change of share decimal places results in report error.
Change of share decimal places results in report error.
Status: VERIFIED DUPLICATE of bug 133598
Product: GnuCash
Classification: Other
Component: Reports
1.8.x
Other Linux
: Normal normal
: ---
Assigned To: Chris Lyttle
Chris Lyttle
Depends on:
Blocks:
 
 
Reported: 2004-09-18 18:58 UTC by Shinichi Sakata
Modified: 2018-06-29 20:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Shinichi Sakata 2004-09-18 18:58:44 UTC
1. Choose "Reports->Assets & Liability->Investment Portfolio". This generates
the portfolio report normally.
2. Push the "Option" button.
3. Change the value of "Share decimal places" from 2 to 3.
4. Push the "Apply" button. GnuCash now gives the error message:

     Report error
     
     An error occurred while running the report.

The shell from which gnucash was started shows the following messages:

In unknown file:

   ?:  5* [#<procedure #f ()>]
In /usr/share/gnucash/guile-modules/gnucash/main.scm:
 248:  6* [lazy-catch #t #<procedure #f ()> #<procedure dumper (key . args)>]
In unknown file:
   ?:  7* [#<procedure #f ()>]
In /usr/share/gnucash/guile-modules/gnucash/main.scm:
 249:  8* [apply #<procedure #f ()> ()]
In unknown file:
   ?:  9  [#<procedure #f ()>]
In /usr/share/gnucash/scm/report.scm:
    ...
 389: 10  (set! html (gnc:report-render-html report #t))
 389: 11* [gnc:report-render-html # #t]
 357: 12  (if (and # #) (begin #) (let # # doc))
 364: 13  (let ((template #) (doc #f)) (set! doc (if template # #f)) doc)
 367: 14* (set! doc (if template (let* # # # ...) #f))
 367: 15* (if template (let* # # # ...) #f)
 368: 16  (let* (# # # ...) (gnc:html-document-set-style-sheet! doc stylesheet) ...)
 370: 17* [portfolio-renderer #]
In /usr/share/gnucash/guile-modules/gnucash/report/portfolio.scm:
  99: 18  (let (# #) (letrec # # #))
    ...
 173: 19  (let (# # # ...) (gnc:html-document-set-title! document #) ...)
 195: 20* (if (not #) (let* # # # ...) (gnc:html-document-add-object! document #))
 196: 21  (let* (# # #) (gnc:html-table-set-col-headers! table #) ...)
 238: 22* [table-add-stock-rows # # # ...]
 112: 23  (let ((share-print-info #)) (letrec (#) (set! work-to-do #) ...))
 113: 24* [gnc:share-print-info-places 3.0]
/usr/share/gnucash/guile-modules/gnucash/report/portfolio.scm:113:11: In
procedure gh_scm2long in expression (gnc:share-print-info-places (get-option
gnc:pagename-general optname-shares-digits)):
/usr/share/gnucash/guile-modules/gnucash/report/portfolio.scm:113:11: Wrong type
(inexact) argument in position 1: 3.0
Comment 1 Derek Atkins 2004-09-19 21:09:13 UTC

*** This bug has been marked as a duplicate of 133598 ***
Comment 2 John Ralls 2018-06-29 20:47:12 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=153019. Please update any external references or bookmarks.