mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-30 03:58:26 +00:00
[hub] hub page using BaseList
This commit is contained in:
committed by
Prateeksha Singh
parent
2ef1f84041
commit
9b64620bc0
@@ -17,9 +17,11 @@ def enable_hub():
|
||||
@frappe.whitelist()
|
||||
def get_items(start=0, limit=20, category=None, order_by=None, company=None, text=None):
|
||||
connection = get_client_connection()
|
||||
filters = {
|
||||
'hub_category': category,
|
||||
}
|
||||
|
||||
filters = {}
|
||||
|
||||
if category:
|
||||
filters.update({ 'hub_category': category })
|
||||
if text:
|
||||
filters.update({'item_name': ('like', '%' + text + '%')})
|
||||
if company:
|
||||
|
||||
Reference in New Issue
Block a user