Version 6.x.x Source

Table Name: `tabLeave Application`

Apply / Approve Leaves

### Fields

Sr | Fieldname | Type | Label | Options
--- | --- | --- | --- | ---
1 | `status` | Select | Status |
    Open
    Approved
    Rejected
2 | `column_break_12` | Column Break |  |
3 | `leave_type` | Link | Leave Type | Leave Type
4 | `leave_balance` | Float | Leave Balance Before Application |
5 | `section_break_5` | Section Break |  |
6 | `from_date` | Date | From Date |
7 | `to_date` | Date | To Date |
8 | `half_day` | Check | Half Day |
9 | `total_leave_days` | Float | Total Leave Days |
10 | `column_break1` | Column Break |  |
11 | `description` | Small Text | Reason |
12 | `section_break_7` | Section Break |  |
13 | `employee` | Link | Employee | Employee
14 | `employee_name` | Data | Employee Name |
15 | `column_break_15` | Column Break |  |
16 | `leave_approver` | Link | Leave Approver | User
17 | `leave_approver_name` | Read Only | Leave Approver Name |
18 | `sb10` | Section Break |  |
19 | `posting_date` | Date | Posting Date |
20 | `follow_via_email` | Check | Follow via Email |
21 | `column_break_17` | Column Break |  |
22 | `company` | Link | Company | Company
23 | `letter_head` | Link | Letter Head | Letter Head
24 | `amended_from` | Link | Amended From | Leave Application

### Controller

#### erpnext.hr.doctype.leave_application.leave_application

### Class InvalidLeaveApproverError

Inherits from frappe.exceptions.ValidationError

### Class LeaveApplication

Inherits from frappe.model.document.Document

get_feed (self)

No docs

notify (self, args)

No docs

notify_employee (self, status)

No docs

notify_leave_approver (self)

No docs

on_cancel (self)

No docs

on_submit (self)

No docs

on_update (self)

No docs

show_block_day_warning (self)

No docs

validate (self)

No docs

validate_back_dated_application (self)

No docs

validate_balance_leaves (self)

No docs

validate_block_days (self)

No docs

validate_dates (self)

No docs

validate_dates_acorss_allocation (self)

No docs

validate_leave_approver (self)

No docs

validate_leave_overlap (self)

No docs

validate_max_days (self)

No docs

### Class LeaveApproverIdentityError

Inherits from frappe.exceptions.ValidationError

### Class LeaveDayBlockedError

Inherits from frappe.exceptions.ValidationError

### Class OverlapError

Inherits from frappe.exceptions.ValidationError

erpnext.hr.doctype.leave_application.leave_application.add_block_dates (events, start, end, employee, company)

No docs

erpnext.hr.doctype.leave_application.leave_application.add_department_leaves (events, start, end, employee, company)

No docs

erpnext.hr.doctype.leave_application.leave_application.add_holidays (events, start, end, employee, company)

No docs

erpnext.hr.doctype.leave_application.leave_application.add_leaves (events, start, end, match_conditions=None)

No docs

erpnext.hr.doctype.leave_application.leave_application.get_approved_leaves_for_period (employee, leave_type, from_date, to_date)

No docs

Public API
`/api/method/erpnext.hr.doctype.leave_application.leave_application.get_approvers`

erpnext.hr.doctype.leave_application.leave_application.get_approvers (doctype, txt, searchfield, start, page_len, filters)

No docs

Public API
`/api/method/erpnext.hr.doctype.leave_application.leave_application.get_events`

erpnext.hr.doctype.leave_application.leave_application.get_events (start, end)

No docs

erpnext.hr.doctype.leave_application.leave_application.get_holidays (employee, from_date, to_date)

No docs

erpnext.hr.doctype.leave_application.leave_application.get_leave_allocation_records (date, employee=None)

No docs

Public API
`/api/method/erpnext.hr.doctype.leave_application.leave_application.get_leave_balance_on`

erpnext.hr.doctype.leave_application.leave_application.get_leave_balance_on (employee, leave_type, date, allocation_records=None, consider_all_leaves_in_the_allocation_period=False)

No docs

Public API
`/api/method/erpnext.hr.doctype.leave_application.leave_application.get_number_of_leave_days`

erpnext.hr.doctype.leave_application.leave_application.get_number_of_leave_days (employee, leave_type, from_date, to_date, half_day=None)

No docs

erpnext.hr.doctype.leave_application.leave_application.is_lwp (leave_type)

No docs

#### Linked In:

- Leave Application