Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update actions_subtotal.class.php #419

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SylvainLegrand
Copy link

Made at devcamp, seen with John.

When you use the "hide inner lines" option, all rows are hidden even if they are not included in a title (and subtotal) block.

This PR fix it.

Made at devcamp, seen with John.

When you use the "hide inner lines" option, all rows are hidden even if they are not included in a title (and subtotal) block.

This PR fix it.
Comment on lines +2255 to +2258
$hasParentTitle = TSubtotal::getParentTitleOfLine($object, $line->rang);
if (empty($hasParentTitle) && empty(TSubtotal::isModSubtotalLine($line))) { // cette ligne n'est pas dans un titre => on l'affiche
$TLines[] = $line;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attention la ligne peut potentiellement être compté 2 fois il faut que la condition suivante soit elseif net non juste if

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.

2 participants