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 626067 - Easy stylesheet applies incorrect style on 2-level transaction reports
Easy stylesheet applies incorrect style on 2-level transaction reports
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Reports
2.2.x
Other Linux
: Normal minor
: ---
Assigned To: Andreas Köhler
Andreas Köhler
Depends on:
Blocks:
 
 
Reported: 2010-08-04 22:27 UTC by Tarlika Elisabeth Schmitz
Modified: 2018-06-29 22:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot of Transaction Report (24.46 KB, image/png)
2010-08-08 18:30 UTC, Tarlika Elisabeth Schmitz
Details
Transaction report when generated in r19315/webkit (43.26 KB, image/png)
2010-08-08 20:24 UTC, Geert Janssens
Details

Description Tarlika Elisabeth Schmitz 2010-08-04 22:27:18 UTC
In a transactions reports with primary and secondary key the styles are not applied correctly:

The sub-heading/total (as it's called in the HTML stylesheet
properties) is ONLY applied to the very first primary key heading. It
is not applied to subsequent primary key headings and it is not applied
to any primary subtotals.

You can easily test this: 

1) create a transaction report; on the "General"
tab, choose "Easy" stylesheet; on the "Sorting" tab, untick "Secondary
Subtotal". Now you'll only get level one subheadings and subtotals
displayed against the correct Easy stylesheet background colour.

2) now tick "Secondary Subtotal". Choose anything as a "Secondary Key",
for instance "Other Account Name". Apply. Now all the primary AND
secondary subheadings and subtotals (level one and level two) will be
displayed against the second level ("sub-subheading/total") "Easy"
stylesheet background EXCEPT the very first primary heading.
Comment 1 Geert Janssens 2010-08-08 17:03:39 UTC
I can't reproduce this in the latest svn revision (r19315), although I'm seem to have different bugs in this revision.

Firstly, when I open a default transaction report, the "Secondary Subtotal" is disabled. It will only get enabled when the secondary key is set to "Other Account Name" or "Description". If the secondary key is set to the default "Register Order" or any of the date options, "Secondary Subtotal is disabled and "Secondary Subtotal for date key" becomes enabled. I don't think this is a bug, but it's confusing anyway. I don't know if it's documented. If not, it definitely should.

When I set the "Secondary Key" to "Other Account Name", I can check or uncheck the "Secondary Subtotal". With the option unchecked, there is one level of sub-headings using the "Subheading/Subtotal" color from the Easy stylesheet. With the option checked, there are two levels of sub-headings. Level one uses the "Subheading/Subtotal" color, level two uses the "Sub-subheading/total" color. So in svn this works as expected.

Note here that the names of the colors are an unfortunate choice. Some consistency would help here.

But then if I set the "Secondary Key" to "Description", and check the "Secondary Subtotal" button, it won't display any secondary level subheadings and subtotals at all. This I consider a bug.
Comment 2 Tarlika Elisabeth Schmitz 2010-08-08 18:30:15 UTC
Created attachment 167374 [details]
screenshot of Transaction Report

On the Accounts tab I chose two bank accounts (Royal Bank of Scotland and Santander) as Report Accounts and the Filter Accounts Expenses and Income. In the report the two totals for the banks and the Santander headings should have the level 1 background colour, not the level 2 colour.
Comment 3 Tarlika Elisabeth Schmitz 2010-08-08 18:30:57 UTC
You can produce a 2-level Transaction Report by setting the "Secondary Key", for instance, to "Date" or "Other Account Name".

I will file another bug report about transaction reports as opposed to this Easy stylesheet issue.
Comment 4 Geert Janssens 2010-08-08 20:24:56 UTC
Created attachment 167380 [details]
Transaction report when generated in r19315/webkit

Thank you for generating a second bug report for the sort/group confusion in reports. That way we can focus this report on the Easy stylesheet.

I am happy to tell you that as far as I can see this problem has been fixed in the unstable gnucash series. See my attached screenshot to demonstrate this. I have also selected two accounts and set the other options as you describe. For me the colors are used as you expect them.

The 2.2.x series is no longer developed. So I think I can close this bug as fixed in the next upcoming release.

Thank you for your time to help us improve GnuCash.
Comment 5 Geert Janssens 2010-08-08 20:25:15 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 6 John Ralls 2018-06-29 22:42:33 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=626067. Please update any external references or bookmarks.