mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-13 20:18:45 +00:00
fix: don't filter payment entries on Bank Account in Payment Clearance
(cherry picked from commit fa2fd5bf88)
This commit is contained in:
@@ -159,9 +159,6 @@ def get_payment_entries_for_bank_clearance(
|
|||||||
as_dict=1,
|
as_dict=1,
|
||||||
)
|
)
|
||||||
|
|
||||||
if bank_account:
|
|
||||||
condition += "and bank_account = %(bank_account)s"
|
|
||||||
|
|
||||||
payment_entries = frappe.db.sql(
|
payment_entries = frappe.db.sql(
|
||||||
f"""
|
f"""
|
||||||
select
|
select
|
||||||
@@ -183,7 +180,6 @@ def get_payment_entries_for_bank_clearance(
|
|||||||
"account": account,
|
"account": account,
|
||||||
"from": from_date,
|
"from": from_date,
|
||||||
"to": to_date,
|
"to": to_date,
|
||||||
"bank_account": bank_account,
|
|
||||||
},
|
},
|
||||||
as_dict=1,
|
as_dict=1,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user