GNOME Bugzilla – Bug 636672
Reports>Business>Receivable Aging error
Last modified: 2018-06-29 22:49:00 UTC
Created attachment 175987 [details] terminal output upon A/R Aging report failing to open Report will not open; new window opens with "Report Error" "An error occurred while running the report." Terminal output attached. Mac 10.6.5 build 2.3.17 svn r19906 on 2010-12-03
If you go to line 311 of /Users/russ/local/share/gnucash/guile-modules/gnucash/report/aging.scm and change QOF-QUERY-AND to (QOF-QUERY-AND) does that fix the problem? (You might need to do it on the next line, too, and then restart GnuCash). Yes, the change I'm asking you to make it to put parens around the QOF-QUERY-AND symbol. Could you try that and get back to me?
I can reproduce this problem and adding the parenthesis seems to help (only to advance to the next problem with set-sort-order). Looking at src/engine/engine.i I do see: SET_ENUM("QOF-QUERY-AND"); so the parenthesis shouldn't be necessary. Regarding the subsequent set-sort-order problem: /usr/local/gnucash/share/gnucash/guile-modules/gnucash/report aging.scm:313:5: In procedure qof-query-set-sort-order in expression (qof-query-set-sort-order query (list SPLIT-TRANS TRANS-DATE-POSTED) ...): /usr/local/gnucash/share/gnucash/guile-modules/gnucash/report/aging.scm:313:5: Wrong type argument in position 2: ("trans" "date-posted") this might be related to r19890 (#635469). I'm not 100% sure what version I've been using to test this, though, so I'll try a clean svn r19909 recompile now to further debug this.
Created attachment 176026 [details] [review] Fix for this bug against trunk r19909 Ok, I found the cause. Turns out one of my patches (adding qofquery bindings for invoices) broke it. I'm attaching a patch that fixes it (and contains more details about the problem).
Committed in r19913. Reporter, please test.
Reported fixed.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=636672. Please update any external references or bookmarks.