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 742352 - Budget Summary section does not show expense totals
Budget Summary section does not show expense totals
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Budgets
2.6.5
Other All
: Normal normal
: ---
Assigned To: gnucash-core-maint
gnucash-core-maint
Depends on:
Blocks:
 
 
Reported: 2015-01-05 05:29 UTC by David Carlson
Modified: 2018-06-29 23:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Bug742352 Patch (12.12 KB, patch)
2015-12-21 02:07 UTC, Matt
committed Details | Review

Description David Carlson 2015-01-05 05:29:36 UTC
The summary section at the bottom of the budget window shows subtotal values for income and transfers, but it shows zeros for expenses.  The bottom line totals also do not include expenses.  

The subtotals for each major section are shown at the top of each section respectively as expected.

I have observed this in release 2.6.5 for windows in Windows 7 and release 2.6.3 for Linux in Ubuntu 12.04.  It has also been observed in release 2.6.3 for Windows in Windows 8.1 French version.
Comment 1 Matt 2015-10-17 21:47:22 UTC
This bug remains extant at this stage (version 2.6.9, all distros). The source of this bug lies in the way GnuCash calculates the totals summaries at the bottom of the budget. The four major 'types' to calculate are Income, Expenses, Transfers and Total. In your account tree, each of these MUST be only one branch. I.e. I had an account on the same level as my "Expenses" accounts called "Unspecified" that was marked as account type "expense". Right clicking on this account, going "Edit Account" and marking it as account type "Bank" solved the issue (after closing and re-opening the budget tab). This account "Unspecified" was automatically created in one of the imports I did a long time ago.

Long story short, I'll try and come up with a way to code in a solution to the problem, but in the mean time the work around is to simply check all of your base accounts to make sure that you only have one branch of 'expenses' and 'income'. 

Thanks,

Matt
Comment 2 Matt 2015-12-21 02:07:24 UTC
Created attachment 317720 [details] [review]
Bug742352 Patch

Patch to fix the issue with budget amounts not totaling if more than one root account of any type exists. With this patch, the budget totals down the bottom will be correct regardless of how many different root accounts you have.
Comment 3 Geert Janssens 2016-03-13 12:53:38 UTC
Comment on attachment 317720 [details] [review]
Bug742352 Patch

Thank you for your patch. I have committed it after fixing
a compile error about mixing declarations and code.

Before closing the bug, I would love to hear feedback from the original reporter (David) about whether this fixes it for him or not.

@David, can you test with tomorrow's nightly build (or any later build)  on Windows and verify whether it now correctly calculates the totals ? Thank you.
Comment 4 John Ralls 2018-06-29 23:37:27 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=742352. Please update any external references or bookmarks.