GNOME Bugzilla – Bug 626067
Easy stylesheet applies incorrect style on 2-level transaction reports
Last modified: 2018-06-29 22:42:33 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.
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.
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.
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.
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.
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.
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.