GNOME Bugzilla – Bug 343322
Receivable Aging Report - Multiple Currencies Issue
Last modified: 2018-06-29 21:06:06 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)>
This has been fixed in r14237 for 1.9.7. Thanks for the report!
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.