mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
refactor: filter for journal entries
(cherry picked from commit d01f0f2e96)
This commit is contained in:
@@ -92,6 +92,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}' "
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user