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 639371 - Welcome Sample Report reports wrong version and has a broken report
Welcome Sample Report reports wrong version and has a broken report
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Reports
2.4.x
Other Linux
: Normal normal
: ---
Assigned To: gnucash-reports-maint
gnucash-reports-maint
Depends on:
Blocks:
 
 
Reported: 2011-01-12 21:39 UTC by Derek Atkins
Modified: 2018-06-29 22:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Derek Atkins 2011-01-12 21:39:07 UTC
I just ran the Welcome Sample Report in 2.4.0 due to some user interactions in email and noted a few issues:

1) The report says "Welcome to GnuCash 2.0"

2) I see the following in my terminal:

;;; WARNING (gnc:make-report-anchor: No such report:  Income Over Time)

;;; WARNING (gnc:make-report-anchor: No such report:  Expense Over Time)
Comment 1 Christian Stimming 2011-01-13 07:48:23 UTC
The version number is fixed with r20076.

Does the warning also mean some part of the report doesn't work?
Comment 2 Derek Atkins 2011-01-13 15:22:42 UTC
(In reply to comment #1)

> Does the warning also mean some part of the report doesn't work?

I'm not sure, but I suspect that is the case.  I don't regularly run the report.  Clearly most people don't, otherwise this would've been reported a long time ago.  But as we no longer have an "Income Over Time" or "Expense Over Time" report, I suspect there is missing functionality.
Comment 3 Bob 2011-09-28 15:05:44 UTC
Those error messages are not coming from the welcome report but from a report it loads. This report is the "Income and Expenses Chart". I have tried to look at this but I am getting confused.

This chart is stored in net-barchart.scm and the offending lines are like..

                   (gnc:make-report-anchor
                    (if inc-exp?
                        "Income Over Time"
                        "Assets Over Time")
....

                   (gnc:make-report-anchor
                    (if inc-exp?
                        "Expense Over Time"
                        "Liabilities Over Time")


These four entries are in category-barchart.scm and the 'Income/Expense' entries work but I can not see why the others do not work.
Comment 4 Mike Evans 2011-12-30 15:50:19 UTC
I noticed this while adapting the net-barchart.scm to net-linechart.scm, then promptly forgot to look into it further.

From src/report/report-system/html-utilities:

(define (gnc:make-report-anchor reportname src-report optionlist) ...

Looking at account-piecherts.scm, the first param to gnc:make-report-anchor should be the report-guid rather then reportname it seems.

> Does the warning also mean some part of the report doesn't work?

It appears that this section  
;; URLs for income/expense or asset/liabilities bars.
is to add a stacked barchart option to the report.

Not sure if this section does anything useful for the net-linechart.scm report.
Comment 5 Carsten Rinke 2013-08-28 21:12:04 UTC
Hi Derek,

I tried to reproduce this in GnuCash 2.5.4. but did not succeed.

Do you still see this? Or can this bug be closed?
Comment 6 Geert Janssens 2013-12-08 18:27:32 UTC
As Mike correctly analysed, the warnings originate from the fact that make-report-anchor takes a report-guid instead of a report-name as first parameter. This is probably a left over from the switch once made in the whole report system to identify reports by guid instead of by name.

The report anchors that are being generated are not used on the current code however. These in themselves are lonely witnesses from a time before we generated the reports with goffice (was that with guppy or something similar ?). In that era the charts allowed some drill-through from an overview chart to more detailed charts. This feature was lost with the introduction of goffice, but the report anchors are still made should the feature ever be restored (perhaps this is possible with the jqplot based reports). I believe there's another bug report for that though.

For the current bug specifically I have done two things:
1. make the version number in the welcome report dynamic. Otherwise we'd have to update the report with each release. The version is now read from the build time version number.

2. fix the calls to make-report-anchor to use the proper guids instead of report names. As said before, the anchors are not used. That's the subject of another bug report.

This will not be backported to 2.4 because some of the altered files are too different between these two branches.
Comment 7 John Ralls 2018-06-29 22:51:50 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=639371. Please update any external references or bookmarks.