commit | d01f0f2e965d776b9b142e33559efe012b4734e5 | [log] [tgz] |
---|---|---|
author | ruthra kumar <ruthra@erpnext.com> | Tue Jul 04 09:06:08 2023 +0530 |
committer | ruthra kumar <ruthra@erpnext.com> | Mon Aug 21 20:50:34 2023 +0530 |
tree | f4f9a96acff1e4f57fc3112328905d6cb62cb321 | |
parent | 86bac2cf52e6094755e8f21df871a7f56a4d53a5 [diff] |
refactor: filter for journal entries
diff --git a/erpnext/accounts/doctype/payment_reconciliation/payment_reconciliation.py b/erpnext/accounts/doctype/payment_reconciliation/payment_reconciliation.py index 5f69c67..68e3da3 100644 --- a/erpnext/accounts/doctype/payment_reconciliation/payment_reconciliation.py +++ b/erpnext/accounts/doctype/payment_reconciliation/payment_reconciliation.py
@@ -93,6 +93,9 @@ 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}' "