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

fix: validate party and party type only if both available #27002

Merged
merged 9 commits into from
Aug 25, 2021

Conversation

AfshanKhan
Copy link
Contributor

Problem:

b4

This was happening because as Party Type is a link field it gets validated. But till the validation happens the report gets executed without Party Type in the filter and when Party Type is validated the report again gets executed now with Party Type in filter.

Now:

after

As Party filter is a Multi-select field it will only show values when Party Type is selected. This removes the need to validate for Party Type. Hence in this PR we validate Party only when both Party Type and Party contains value.

@AfshanKhan AfshanKhan linked an issue Aug 18, 2021 that may be closed by this pull request
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 51.369% when pulling df5724e on AfshanKhan:fix-gl-report-filter into 7c957d7 on frappe:develop.

@deepeshgarg007 deepeshgarg007 merged commit 8366b63 into frappe:develop Aug 25, 2021
frappe-pr-bot pushed a commit to frappe-pr-bot/erpnext that referenced this pull request Aug 25, 2021
* fix: validate party and party type only if both available

* fix: indentation

(cherry picked from commit 8366b63)
AfshanKhan added a commit that referenced this pull request Aug 25, 2021
…27133)

* fix: validate party and party type only if both available

* fix: indentation

(cherry picked from commit 8366b63)

Co-authored-by: Afshan <33727827+AfshanKhan@users.noreply.github.com>
asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
* fix: validate party and party type only if both available

* fix: indentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

General Ledger report error
3 participants