mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 00:25:01 +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:
|
||||
webnotes.msgprint(formatdate(d.block_date) + ": " + d.reason)
|
||||
|
||||
if self.doc.docstatus == 1:
|
||||
if self.doc.status == "Approved":
|
||||
raise LeaveDayBlockedError
|
||||
|
||||
def get_holidays(self):
|
||||
|
||||
Reference in New Issue
Block a user