mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 14:38:26 +00:00
Update set_sales_person_status.py
This commit is contained in:
@@ -4,4 +4,5 @@ import frappe
|
||||
def execute():
|
||||
frappe.reload_doc('setup','doctype','sales_person')
|
||||
frappe.db.sql("""update `tabSales Person` set enabled=1
|
||||
where employee IN (select employee from tabEmployee where status != "Left")""")
|
||||
where (employee is null or employee = ''
|
||||
or employee IN (select employee from tabEmployee where status != "Left"))""")
|
||||
|
||||
Reference in New Issue
Block a user