From 2d2f30e6cf4aacabe46f827f66dd67f0e6dfd1b6 Mon Sep 17 00:00:00 2001 From: Safvan Huzain <92985225+safvanhuzain@users.noreply.github.com> Date: Wed, 29 Jan 2025 15:57:01 +0530 Subject: [PATCH] fix(query): remove duplicate docstatus condition (#45586) fix: remove duplicate docstatus condition in query (cherry picked from commit 3f2e93dcb682666036f458e3fea05804233bcbc3) --- .../doctype/bank_reconciliation_tool/bank_reconciliation_tool.py | 1 - 1 file changed, 1 deletion(-) diff --git a/erpnext/accounts/doctype/bank_reconciliation_tool/bank_reconciliation_tool.py b/erpnext/accounts/doctype/bank_reconciliation_tool/bank_reconciliation_tool.py index 62a4c74a933..9de1b4216ce 100644 --- a/erpnext/accounts/doctype/bank_reconciliation_tool/bank_reconciliation_tool.py +++ b/erpnext/accounts/doctype/bank_reconciliation_tool/bank_reconciliation_tool.py @@ -802,7 +802,6 @@ def get_je_matching_query( .where(je.clearance_date.isnull()) .where(jea.account == common_filters.bank_account) .where(amount_equality if exact_match else getattr(jea, amount_field) > 0.0) - .where(je.docstatus == 1) .where(filter_by_date) .orderby(je.cheque_date if cint(filter_by_reference_date) else je.posting_date) )