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 343322 - Receivable Aging Report - Multiple Currencies Issue
Receivable Aging Report - Multiple Currencies Issue
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: Business
1.9.x
Other Linux
: Normal normal
: ---
Assigned To: Derek Atkins
Derek Atkins
Depends on:
Blocks:
 
 
Reported: 2006-05-29 19:18 UTC by Georgi Mirchev
Modified: 2018-06-29 21:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Georgi Mirchev 2006-05-29 19:18:29 UTC
It seems that there is a bug with the Receivable Aging report. I can see that the report cannot handle multicurrency transactions, but what is worse is that gnucash doesn't print the rest of the report. It seems that the sprintf() bails out.
The dump follows - see the last line for the actual error.

In unknown file:
 ?: 18  [#<procedure #f ()>]
In /usr/local/devel//share/gnucash/scm/report.scm:
  ...
442: 19  (set! html (gnc:report-render-html report #t))
442: 20* [gnc:report-render-html # #t]
407: 21  (if (and (not #) (gnc:report-ctext report)) (gnc:report-ctext report) ...)
415: 22  (let ((template #) (doc #f)) (set! doc (if template # #f)) doc)
418: 23* (set! doc (if template (let* # # # ...) #f))
418: 24* (if template (let* # # # ...) #f)
419: 25  (let* (# # # ...) (gnc:html-document-set-style-sheet! doc stylesheet) ...)
421: 26* [receivables-renderer #]
In unknown file:
 ?: 27  (letrec (#) (let # # #))
In /usr/local/devel//share/gnucash/guile-modules/gnucash/report/aging.scm:
  ...
518: 28  (let* (# # # ...) (gnc:html-document-set-title! document report-title) ...)
561: 29* (if account (begin (setup-query query account ...) (let # # ...)) ...)
562: 30  (begin (setup-query query account ...) (let (#) (set! work-to-do #) ...))
565: 31  (let ((splits #)) (set! work-to-do (length splits)) ...)
571: 32* [for-each #<procedure #f (split)> (# # # # ...)]
In unknown file:
 ?: 33* [#<procedure #f (split)> #<gw:wcp <gnc:Split*> 0x87af700>]
In /usr/local/devel//share/gnucash/guile-modules/gnucash/report/aging.scm:
574: 34* [update-company-hash #(() () () ...) #<gw:wcp <gnc:Split*> 0x87af700> ...]
In unknown file:
 ?: 35  (letrec ((do-update #)) (let* (# # #) (if # #)))
In /usr/local/devel//share/gnucash/guile-modules/gnucash/report/aging.scm:
  ...
205: 36  [cons #f ...
205: 37*  (sprintf #)
/usr/local/devel//share/gnucash/guile-modules/gnucash/report/aging.scm:205:29: In expression (sprintf (_ "Transactions relating to company  %d contain more than one currency.  This rep
ort is not designed to cope with this possibility.")):
/usr/local/devel//share/gnucash/guile-modules/gnucash/report/aging.scm:205:29: Wrong number of arguments to #<procedure sprintf (str format . args)>
Comment 1 Andreas Köhler 2006-05-30 10:46:52 UTC
This has been fixed in r14237 for 1.9.7.
Thanks for the report!
Comment 2 John Ralls 2018-06-29 21:06:06 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=343322. Please update any external references or bookmarks.