refactor: add total row if only one party is being filtered
(cherry picked from commit b1dfa2537bee220e8bb915b8152e4aa3014befa9)
This commit is contained in:
parent
a2a5b34099
commit
baa83ece21
@ -83,7 +83,10 @@ class ReceivablePayableReport(object):
|
|||||||
self.skip_total_row = 1
|
self.skip_total_row = 1
|
||||||
|
|
||||||
if self.filters.get("in_party_currency"):
|
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):
|
def get_data(self):
|
||||||
self.get_ple_entries()
|
self.get_ple_entries()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user