mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 22:49:19 +00:00
[Minor] Party validation for Employee
This commit is contained in:
committed by
Nabin Hait
parent
9b9777be3f
commit
95108ac80b
@@ -341,7 +341,7 @@ def validate_party_frozen_disabled(party_type, party_name):
|
|||||||
|
|
||||||
elif party_type == "Employee":
|
elif party_type == "Employee":
|
||||||
if frappe.db.get_value("Employee", party_name, "status") == "Left":
|
if frappe.db.get_value("Employee", party_name, "status") == "Left":
|
||||||
frappe.msgprint(_("{0} {1} is not active").format(party_type, party_name), PartyDisabled, alert=True)
|
frappe.msgprint(_("{0} {1} is not active").format(party_type, party_name), alert=True)
|
||||||
|
|
||||||
def get_timeline_data(doctype, name):
|
def get_timeline_data(doctype, name):
|
||||||
'''returns timeline data for the past one year'''
|
'''returns timeline data for the past one year'''
|
||||||
|
|||||||
Reference in New Issue
Block a user