fix: remove unnecessary filtering by search text in get_expense_accounts

(cherry picked from commit b9aaae6343)
This commit is contained in:
ljain112
2025-11-28 18:36:13 +05:30
committed by Mergify
parent c06e121cda
commit e50ba37108

View File

@@ -459,11 +459,6 @@ def get_expense_accounts(doctype, txt, searchfield, start, page_len, filters):
expense_accounts = _get_expense_accounts_for_purchase_invoice(purchase_invoice)
# Filter by search text if provided
if txt:
txt = txt.lower()
expense_accounts = [acc for acc in expense_accounts if txt in acc.lower()]
return [[account] for account in expense_accounts]