mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 00:25:01 +00:00
chore: remove unused code
This commit is contained in:
@@ -17,8 +17,7 @@ class LeaveType(Document):
|
||||
'leave_type': self.name,
|
||||
'from_date': ("<=", today()),
|
||||
'to_date': (">=", today())
|
||||
}, ['name'])
|
||||
}, fields=['name'])
|
||||
leave_allocation = [l['name'] for l in leave_allocation]
|
||||
frappe.db("""select name from `tabLeave Allocation` where leave_type=%s""", (self.name))
|
||||
if leave_allocation:
|
||||
frappe.throw(_('Leave application is linked with leave allocations {0}. Leave application cannot be set as leave without pay').format(", ".join(leave_allocation))) #nosec
|
||||
frappe.throw(_('Leave application is linked with leave allocations {0}. Leave application cannot be set as leave without pay').format(", ".join(leave_allocation))) #nosec
|
||||
|
||||
Reference in New Issue
Block a user