mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
[cleanup] [minor] for territory fixed to applicable territory
This commit is contained in:
@@ -72,7 +72,7 @@ class DocType(DocListController):
|
|||||||
# make a map of territory: [list of names]
|
# make a map of territory: [list of names]
|
||||||
# if list against each territory has more than one element, raise exception
|
# if list against each territory has more than one element, raise exception
|
||||||
territory_name = webnotes.conn.sql("""select `territory`, `parent`
|
territory_name = webnotes.conn.sql("""select `territory`, `parent`
|
||||||
from `tabFor Territory`
|
from `tabApplicable Territory`
|
||||||
where `parenttype`=%s and `parent` in (%s)""" %
|
where `parenttype`=%s and `parent` in (%s)""" %
|
||||||
("%s", ", ".join(["%s"]*len(names))), tuple([parenttype] + names))
|
("%s", ", ".join(["%s"]*len(names))), tuple([parenttype] + names))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user