mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 20:59:11 +00:00
Update set_sales_person_status.py
This commit is contained in:
@@ -4,4 +4,5 @@ import frappe
|
|||||||
def execute():
|
def execute():
|
||||||
frappe.reload_doc('setup','doctype','sales_person')
|
frappe.reload_doc('setup','doctype','sales_person')
|
||||||
frappe.db.sql("""update `tabSales Person` set enabled=1
|
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