Skip to content

Commit

Permalink
refactor: filter for journal entries
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed Aug 21, 2023
1 parent 86bac2c commit d01f0f2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ def get_payment_entries(self):
def get_jv_entries(self):
condition = self.get_conditions()

if self.payment_name:
condition += f" and t1.name like '%%{self.payment_name}%%'"

if self.get("cost_center"):
condition += f" and t2.cost_center = '{self.cost_center}' "

Expand Down

0 comments on commit d01f0f2

Please sign in to comment.