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.model.document.Document
check whether carry forward is allowed or not for this leave type
check_existing_leave_allocation (self)
check whether leave for same type is already allocated or not
get_carry_forwarded_leaves (self)
No docs
No docs
No docs
No docs
get_total_allocated_leaves (self)
No docs
No docs
No docs
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, leave_det)
No docs