Version 6.7.7 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 | `fiscal_year` | Link | Fiscal Year | Fiscal Year
21 | `follow_via_email` | Check | Follow via Email |
22 | `column_break_17` | Column Break |  |
23 | `company` | Link | Company | Company
24 | `letter_head` | Link | Letter Head | Letter Head
25 | `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

get_holidays (self)

No docs

get_total_leave_days (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_balance_leaves (self)

No docs

validate_block_days (self)

No docs

validate_leave_approver (self)

No docs

validate_leave_overlap (self)

No docs

validate_max_days (self)

No docs

validate_to_date (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

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 (leave_app)

No docs

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

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

No docs

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

erpnext.hr.doctype.leave_application.leave_application.get_total_leave_days (leave_app)

No docs

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

No docs

#### Linked In:

- Leave Application