mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
Added Is Active to Sales Person
This commit is contained in:
7
erpnext/patches/v7_1/set_sales_person_status.py
Normal file
7
erpnext/patches/v7_1/set_sales_person_status.py
Normal file
@@ -0,0 +1,7 @@
|
||||
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
|
||||
where employee IN (select employee from tabEmployee where status != "Left")""")
|
||||
Reference in New Issue
Block a user