Skip to content

Conversation

@eagleoriginal
Copy link

Propose new feature. Subtotal Line totally removed if only merging needing.
This achieve by using tag DisableSubtotalLine. Like <<Group MergeLabels=Merge2 DisableSubtotalLine>>
Sometimes it can be useful, when users ask for groups in secondary columns(it can be date, or some entity), but subtotals usually needs only in first column(usually organization).
result you can see in file
GroupTagTests_DisableSubTotals_MergeLabels.xlsx
DisabledSubTotals

Also fix bug of style of merged cell(sometimes merged cells become gray).
Because in row on right column placed subtotal footer.
After that some tests have broken with error
for example ClosedXML.Report.Tests.GroupTagTests.Customers
TestCase InlineData("GroupTagTests_DisableOutline.xlsx")
Expected True because Cell style are not equal starting from B6, but found False.
I dont know much ClosedXml.Reports but there are something wrong in line:

int cellIdx = _maxLevel - subGroup.Level + 1;

Correct Break Right Groups according on left groups Ends without Subtotal lines

# Conflicts:
#	tests/Gauges/GroupTagTests_DisableSubTotals_MergeLabels.xlsx
#	tests/Templates/GroupTagTests_DisableSubTotals_MergeLabels.xlsx
@b0bi79
Copy link
Member

b0bi79 commented Mar 28, 2022

Thanks for your contribution. I will review this PR shortly.

@Pankraty
Copy link
Member

@eagleoriginal I understand this was a long ago but could you please upgrade your PR to the latest version of develop branch if it the feature request is still relevant?

@eagleoriginal
Copy link
Author

eagleoriginal commented Jul 27, 2023 via email

@eagleoriginal
Copy link
Author

eagleoriginal commented Nov 4, 2023

Hello.
Sorry for Late.
Have Created New Pull request, Updated to current version.
#335

@eagleoriginal
Copy link
Author

This is outedated thread. So Close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants