From baa83ece2176c2b72c119b7828e8c561f0d71d09 Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Thu, 15 Feb 2024 12:35:14 +0530 Subject: [PATCH] refactor: add total row if only one party is being filtered (cherry picked from commit b1dfa2537bee220e8bb915b8152e4aa3014befa9) --- .../report/accounts_receivable/accounts_receivable.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py index eafce6d326..92d9755897 100644 --- a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py +++ b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py @@ -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()