Update hr/doctype/appraisal/appraisal.py
fixed issue in appraisal
This commit is contained in:
parent
c39d13b6a7
commit
b7084b8995
@ -77,10 +77,9 @@ class DocType:
|
|||||||
msgprint("Total weightage assigned should be 100%. It is :" + str(total_w) + "%",
|
msgprint("Total weightage assigned should be 100%. It is :" + str(total_w) + "%",
|
||||||
raise_exception=1)
|
raise_exception=1)
|
||||||
|
|
||||||
if webnotes.conn.get_default("employee", webnotes.session.user) != self.doc.employee:
|
if webnotes.conn.get_value("Employee", self.doc.employee, "user_id") != \
|
||||||
|
webnotes.session.user and total == 0:
|
||||||
if total==0:
|
msgprint("Total can't be zero. You must atleast give some points!", raise_exception=1)
|
||||||
msgprint("Total can't be zero. You must atleast give some points!", raise_exception=1)
|
|
||||||
|
|
||||||
self.doc.total_score = total
|
self.doc.total_score = total
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user