Table Name: tabLeave Allocation
Sr | Fieldname | Type | Label | Options |
---|---|---|---|---|
1 | column_break0 |
Column Break | ||
2 | employee |
Link | Employee | Employee |
3 | employee_name |
Data | Employee Name | |
4 | column_break1 |
Column Break | ||
5 | description |
Small Text | Description | |
6 | section_break_6 |
Section Break | ||
7 | leave_type |
Link | Leave Type | Leave Type |
8 | from_date |
Date | From Date | |
9 | to_date |
Date | To Date | |
10 | column_break_10 |
Column Break | ||
11 | new_leaves_allocated |
Float | New Leaves Allocated | |
12 | carry_forward |
Check | Add unused leaves from previous allocations | |
13 | carry_forwarded_leaves |
Float | Unused leaves | |
14 | total_leaves_allocated |
Float | Total Leaves Allocated | |
15 | amended_from |
Link | Amended From | Leave Allocation |
Inherits from frappe.exceptions.ValidationError
Inherits from frappe.model.document.Document
No docs
set_total_leaves_allocated (self)
No docs
No docs
validate_against_leave_applications (self)
No docs
validate_allocation_overlap (self)
No docs
validate_back_dated_allocation (self)
No docs
validate_new_leaves_allocated_value (self)
validate that leave allocation is in multiples of 0.5
No docs
validate_total_leaves_allocated (self)
No docs
Inherits from frappe.exceptions.ValidationError
Inherits from frappe.exceptions.ValidationError
Inherits from frappe.exceptions.ValidationError
Inherits from frappe.exceptions.ValidationError
Public API
/api/method/erpnext.hr.doctype.leave_allocation.leave_allocation.get_carry_forwarded_leaves
erpnext.hr.doctype.leave_allocation.leave_allocation.get_carry_forwarded_leaves (employee, leave_type, date, carry_forward=None)
No docs
erpnext.hr.doctype.leave_allocation.leave_allocation.validate_carry_forward (leave_type)
No docs