mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 14:38:26 +00:00
[fix] [minor] get query
This commit is contained in:
@@ -217,4 +217,12 @@ def get_project_name(doctype, txt, searchfield, start, page_len, filters):
|
||||
and %(cond)s `tabProject`.name like "%(txt)s" %(mcond)s
|
||||
order by `tabProject`.name asc
|
||||
limit %(start)s, %(page_len)s """ % {'cond': cond,'txt': "%%%s%%" % txt,
|
||||
'mcond':get_match_cond(doctype, searchfield),'start': start, 'page_len': page_len})
|
||||
'mcond':get_match_cond(doctype, searchfield),'start': start, 'page_len': page_len})
|
||||
|
||||
def get_price_list_currency(doctype, txt, searchfield, start, page_len, filters):
|
||||
return webnotes.conn.sql("""select ref_currency from `tabItem Price`
|
||||
where price_list_name = %s and buying_or_selling = %s
|
||||
and `%s` like %s order by ref_currency asc limit %s, %s""" %
|
||||
("%s", "%s", searchfield, "%s", "%s", "%s"),
|
||||
(filters["price_list_name"], filters['buying_or_selling'], "%%%s%%" % txt,
|
||||
start, page_len))
|
||||
Reference in New Issue
Block a user