bugfix for sales_person.py
diff --git a/setup/doctype/sales_person/sales_person.py b/setup/doctype/sales_person/sales_person.py
index f085376..04a40bd 100644
--- a/setup/doctype/sales_person/sales_person.py
+++ b/setup/doctype/sales_person/sales_person.py
@@ -6,6 +6,7 @@
from webnotes.model.code import get_obj
from webnotes import session, form, is_testing, msgprint, errprint
+
sql = webnotes.conn.sql
convert_to_lists = webnotes.conn.convert_to_lists
@@ -36,7 +37,7 @@
def validate(self):
-
+ from webnotes.utils import flt
for d in getlist(self.doclist, 'target_details'):
if not flt(d.target_qty) and not flt(d.target_amount):
msgprint("Either target qty or target amount is mandatory.")