Added Is Active to Sales Person

This commit is contained in:
Kanchan Chauhan
2016-12-12 11:12:07 +05:30
parent 58667ab123
commit f0b0db444d
5 changed files with 58 additions and 6 deletions

View 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")""")