fix(query): remove duplicate docstatus condition (#45586)

fix: remove duplicate docstatus condition in query
This commit is contained in:
Safvan Huzain
2025-01-29 15:57:01 +05:30
committed by GitHub
parent 72b940e3d3
commit 3f2e93dcb6

View File

@@ -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)
)