|
|
@ -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)) |