mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
@@ -40,7 +40,7 @@ def get_price_list_currency(args):
|
|||||||
if isinstance(args, basestring):
|
if isinstance(args, basestring):
|
||||||
args = json.loads(args)
|
args = json.loads(args)
|
||||||
|
|
||||||
result = webnotes.conn.sql("""select ref_currency from `tabItem Price`
|
result = webnotes.conn.sql("""select distinct ref_currency from `tabItem Price`
|
||||||
where price_list_name=%s and `%s`=1""" % ("%s", args.get("use_for")),
|
where price_list_name=%s and `%s`=1""" % ("%s", args.get("use_for")),
|
||||||
(args.get("price_list_name"),))
|
(args.get("price_list_name"),))
|
||||||
if result and len(result)==1:
|
if result and len(result)==1:
|
||||||
|
|||||||
Reference in New Issue
Block a user