2016-12-12 11:12:07 +05:30
|
|
|
from __future__ import unicode_literals
|
|
|
|
import frappe
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
frappe.reload_doc('setup','doctype','sales_person')
|
|
|
|
frappe.db.sql("""update `tabSales Person` set enabled=1
|
2016-12-13 11:27:46 +05:30
|
|
|
where (employee is null or employee = ''
|
|
|
|
or employee IN (select employee from tabEmployee where status != "Left"))""")
|