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 785437 - Budget barchart report skips accounts with children
Budget barchart report skips accounts with children
Status: RESOLVED OBSOLETE
Product: GnuCash
Classification: Other
Component: Reports
2.6.15
Other Linux
: Normal enhancement
: ---
Assigned To: gnucash-reports-maint
gnucash-reports-maint
Depends on:
Blocks:
 
 
Reported: 2017-07-26 09:27 UTC by Jon Schewe
Modified: 2018-06-29 23:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jon Schewe 2017-07-26 09:27:37 UTC
I have found that the budget barchart will not display accounts with children. It turns out that the report has code that skips accounts with children. To get the desired behavior I changed the following starting at line 208:
      ;; Else create chart for each account
      (else
        (for-each (lambda (acct)
          (if (null? (gnc-account-get-descendants acct))
            (gnc:html-document-add-object! document
              (gnc:chart-create-budget-actual budget acct running-sum))))
          accounts))

to 
      ;; Else create chart for each account
      (else
        (for-each (lambda (acct)
		    (gnc:html-document-add-object!
		     document
		     (gnc:chart-create-budget-actual budget acct running-sum))
	    )
          accounts))

and got the behavior that I expected.

Perhaps this is fixed in a later release as when I look at the source on github at https://github.com/Gnucash/gnucash/blob/master/src/report/standard-reports/budget-barchart.scm I see that the report functions have been reworked.
Comment 1 Jon Schewe 2017-07-26 09:35:03 UTC
I'm using gnucash 2.6.15-1 as shipped with Ubuntu 17.04.
Comment 2 John Ralls 2018-06-29 23:58:14 UTC
GnuCash bug tracking has moved to a new Bugzilla host. The new URL for this bug is https://bugs.gnucash.org/show_bug.cgi?id=785437. Please continue processing the bug there and please update any external references or bookmarks.