mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-15 12:55:10 +00:00
fix: remove unnecessary filtering by search text in get_expense_accounts
This commit is contained in:
@@ -450,11 +450,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]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user