commit | 25290bb5d557a9759de696c201affeb73f025f28 | [log] [tgz] |
---|---|---|
author | Deepesh Garg <deepeshgarg6@gmail.com> | Tue May 31 09:48:44 2022 +0530 |
committer | GitHub <noreply@github.com> | Tue May 31 09:48:44 2022 +0530 |
tree | 8c4869a96fc3c9caed1a9290aad8ba7017978c1c | |
parent | 08bf0baaae3dad9fc74f15b0c42553b83f82e95d [diff] | |
parent | a0c412a0dd23aeb8181ec49cced5da4e1c908d81 [diff] |
Merge pull request #31184 from Mitchy25/patch-1 fix(accounts): Ignore Cancelled GL Entries
diff --git a/erpnext/accounts/report/profitability_analysis/profitability_analysis.py b/erpnext/accounts/report/profitability_analysis/profitability_analysis.py index 3e7aa1e..183e279 100644 --- a/erpnext/accounts/report/profitability_analysis/profitability_analysis.py +++ b/erpnext/accounts/report/profitability_analysis/profitability_analysis.py
@@ -211,6 +211,7 @@ {additional_conditions} and posting_date <= %(to_date)s and {based_on} is not null + and is_cancelled = 0 order by {based_on}, posting_date""".format( additional_conditions="\n".join(additional_conditions), based_on=based_on ),