mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-15 18:53:39 +00:00
@@ -437,7 +437,7 @@ def get_vendor_invoices(doctype, txt, searchfield, start, page_len, filters):
|
|||||||
query = get_vendor_invoice_query(filters)
|
query = get_vendor_invoice_query(filters)
|
||||||
|
|
||||||
if txt:
|
if txt:
|
||||||
query = query.where(doctype.name.like(f"%{txt}%"))
|
query = query.where(frappe.qb.DocType(doctype).name.like(f"%{txt}%"))
|
||||||
|
|
||||||
if start:
|
if start:
|
||||||
query = query.limit(page_len).offset(start)
|
query = query.limit(page_len).offset(start)
|
||||||
|
|||||||
Reference in New Issue
Block a user