refactor: filter for journal entries
This commit is contained in:
parent
86bac2cf52
commit
d01f0f2e96
@ -93,6 +93,9 @@ class PaymentReconciliation(Document):
|
|||||||
def get_jv_entries(self):
|
def get_jv_entries(self):
|
||||||
condition = self.get_conditions()
|
condition = self.get_conditions()
|
||||||
|
|
||||||
|
if self.payment_name:
|
||||||
|
condition += f" and t1.name like '%%{self.payment_name}%%'"
|
||||||
|
|
||||||
if self.get("cost_center"):
|
if self.get("cost_center"):
|
||||||
condition += f" and t2.cost_center = '{self.cost_center}' "
|
condition += f" and t2.cost_center = '{self.cost_center}' "
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user