mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 22:48:27 +00:00
raise leave blocked error when status is saved as Approved
This commit is contained in:
@@ -71,7 +71,7 @@ class DocType(DocListController):
|
|||||||
for d in block_dates:
|
for d in block_dates:
|
||||||
webnotes.msgprint(formatdate(d.block_date) + ": " + d.reason)
|
webnotes.msgprint(formatdate(d.block_date) + ": " + d.reason)
|
||||||
|
|
||||||
if self.doc.docstatus == 1:
|
if self.doc.status == "Approved":
|
||||||
raise LeaveDayBlockedError
|
raise LeaveDayBlockedError
|
||||||
|
|
||||||
def get_holidays(self):
|
def get_holidays(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user