Version 6.x.x Source

Table Name: `tabLeave Allocation`

### Fields

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

### Controller

#### erpnext.hr.doctype.leave_allocation.leave_allocation

### Class BackDatedAllocationError

Inherits from frappe.exceptions.ValidationError

### Class LeaveAllocation

Inherits from frappe.model.document.Document

on_update_after_submit (self)

No docs

set_total_leaves_allocated (self)

No docs

validate (self)

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

validate_period (self)

No docs

validate_total_leaves_allocated (self)

No docs

### Class LessAllocationError

Inherits from frappe.exceptions.ValidationError

### Class OverAllocationError

Inherits from frappe.exceptions.ValidationError

### Class OverlapError

Inherits from frappe.exceptions.ValidationError

### Class ValueMultiplierError

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

#### Linked In:

- Leave Allocation