Merge pull request #39955 from frappe/mergify/bp/version-15-hotfix/pr-39914

refactor: add total row if only one party is being filtered (backport #39914)
This commit is contained in:
ruthra kumar 2024-02-19 09:16:34 +05:30 committed by GitHub
commit c81a15eac3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -83,7 +83,10 @@ class ReceivablePayableReport(object):
self.skip_total_row = 1
if self.filters.get("in_party_currency"):
self.skip_total_row = 1
if self.filters.get("party") and len(self.filters.get("party")) == 1:
self.skip_total_row = 0
else:
self.skip_total_row = 1
def get_data(self):
self.get_ple_entries()