feat: add Inactive status to Employee

This commit is contained in:
Rucha Mahabal
2021-06-12 13:33:21 +05:30
parent 348f04ca82
commit a38147a8ba
7 changed files with 14 additions and 14 deletions

View File

@@ -457,7 +457,7 @@ def validate_party_frozen_disabled(party_type, party_name):
frappe.throw(_("{0} {1} is frozen").format(party_type, party_name), PartyFrozen)
elif party_type == "Employee":
if frappe.db.get_value("Employee", party_name, "status") == "Left":
if frappe.db.get_value("Employee", party_name, "status") != "Active":
frappe.msgprint(_("{0} {1} is not active").format(party_type, party_name), alert=True)
def get_timeline_data(doctype, name):