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

item group filter shown parent and its child group items #37254

Conversation

Nandhinidevi123
Copy link
Contributor

@Nandhinidevi123 Nandhinidevi123 commented Sep 26, 2023

Before =>In the item-wise purchase register, When using the item group filter for a search, only the parent item group values were displayed, and the corresponding child group values were not shown.
After => Now, when searching for an item group, both the parent item group and its child group values are displayed.

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Sep 26, 2023
@stale
Copy link

stale bot commented Oct 12, 2023

This pull request has been automatically marked as inactive because it has not had recent activity. It will be closed within 3 days if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing.

@stale stale bot added the inactive label Oct 12, 2023
@ruthra-kumar ruthra-kumar self-assigned this Oct 12, 2023
@stale stale bot removed the inactive label Oct 12, 2023
):
if filters.get(opts[0]):
conditions += opts[1]
if filters.get("item_group"):
Copy link
Member

Choose a reason for hiding this comment

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

@Nandhinidevi123 A better way to do this would be https://github.com/frappe/erpnext/blob/develop/erpnext/accounts/report/financial_statements.py#L591

Also, the code is not formatted, please setup linters locally by referring https://github.com/frappe/erpnext/wiki/Pull-Request-Checklist#linting and then reopen the PR

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-tests This PR needs automated unit-tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants