{
 "autoname": "LAP/.#####", 
 "creation": "2013-02-20 11:18:11", 
 "description": "Apply / Approve Leaves", 
 "docstatus": 0, 
 "doctype": "DocType", 
 "document_type": "Transaction", 
 "fields": [
  {
   "default": "Open", 
   "fieldname": "status", 
   "fieldtype": "Select", 
   "in_list_view": 1, 
   "label": "Status", 
   "no_copy": 1, 
   "options": "Open\nApproved\nRejected", 
   "permlevel": 1
  }, 
  {
   "description": "Leave can be approved by users with Role, \"Leave Approver\"", 
   "fieldname": "leave_approver", 
   "fieldtype": "Link", 
   "label": "Leave Approver", 
   "options": "User", 
   "permlevel": 0
  }, 
  {
   "fieldname": "leave_type", 
   "fieldtype": "Link", 
   "ignore_user_permissions": 1, 
   "in_filter": 1, 
   "in_list_view": 1, 
   "label": "Leave Type", 
   "options": "Leave Type", 
   "permlevel": 0, 
   "reqd": 1, 
   "search_index": 1
  }, 
  {
   "fieldname": "from_date", 
   "fieldtype": "Date", 
   "in_list_view": 1, 
   "label": "From Date", 
   "permlevel": 0, 
   "reqd": 1, 
   "search_index": 1
  }, 
  {
   "fieldname": "to_date", 
   "fieldtype": "Date", 
   "in_list_view": 0, 
   "label": "To Date", 
   "permlevel": 0, 
   "reqd": 1, 
   "search_index": 1
  }, 
  {
   "fieldname": "half_day", 
   "fieldtype": "Check", 
   "label": "Half Day", 
   "permlevel": 0
  }, 
  {
   "fieldname": "column_break1", 
   "fieldtype": "Column Break", 
   "permlevel": 0, 
   "print_width": "50%", 
   "width": "50%"
  }, 
  {
   "fieldname": "description", 
   "fieldtype": "Small Text", 
   "label": "Reason", 
   "permlevel": 0
  }, 
  {
   "fieldname": "employee", 
   "fieldtype": "Link", 
   "in_filter": 1, 
   "label": "Employee", 
   "options": "Employee", 
   "permlevel": 0, 
   "reqd": 1, 
   "search_index": 1
  }, 
  {
   "fieldname": "employee_name", 
   "fieldtype": "Data", 
   "in_filter": 1, 
   "in_list_view": 1, 
   "label": "Employee Name", 
   "permlevel": 0, 
   "read_only": 1, 
   "search_index": 0
  }, 
  {
   "fieldname": "leave_balance", 
   "fieldtype": "Float", 
   "label": "Leave Balance Before Application", 
   "no_copy": 1, 
   "permlevel": 0, 
   "read_only": 1
  }, 
  {
   "fieldname": "total_leave_days", 
   "fieldtype": "Float", 
   "label": "Total Leave Days", 
   "no_copy": 1, 
   "permlevel": 0, 
   "read_only": 1
  }, 
  {
   "fieldname": "sb10", 
   "fieldtype": "Section Break", 
   "label": "More Info", 
   "permlevel": 0
  }, 
  {
   "allow_on_submit": 1, 
   "default": "1", 
   "fieldname": "follow_via_email", 
   "fieldtype": "Check", 
   "label": "Follow via Email", 
   "permlevel": 0, 
   "print_hide": 1
  }, 
  {
   "default": "Today", 
   "fieldname": "posting_date", 
   "fieldtype": "Date", 
   "label": "Posting Date", 
   "no_copy": 1, 
   "permlevel": 0, 
   "reqd": 1
  }, 
  {
   "fieldname": "fiscal_year", 
   "fieldtype": "Link", 
   "in_filter": 1, 
   "label": "Fiscal Year", 
   "options": "Fiscal Year", 
   "permlevel": 0, 
   "read_only": 0, 
   "reqd": 1, 
   "search_index": 0
  }, 
  {
   "fieldname": "column_break_17", 
   "fieldtype": "Column Break", 
   "permlevel": 0
  }, 
  {
   "fieldname": "company", 
   "fieldtype": "Link", 
   "label": "Company", 
   "options": "Company", 
   "permlevel": 0, 
   "reqd": 1
  }, 
  {
   "allow_on_submit": 1, 
   "fieldname": "letter_head", 
   "fieldtype": "Link", 
   "ignore_user_permissions": 1, 
   "label": "Letter Head", 
   "options": "Letter Head", 
   "permlevel": 0, 
   "print_hide": 1, 
   "read_only": 0
  }, 
  {
   "fieldname": "amended_from", 
   "fieldtype": "Link", 
   "ignore_user_permissions": 1, 
   "label": "Amended From", 
   "no_copy": 1, 
   "options": "Leave Application", 
   "permlevel": 0, 
   "print_hide": 1, 
   "read_only": 1
  }
 ], 
 "icon": "icon-calendar", 
 "idx": 1, 
 "is_submittable": 1, 
 "max_attachments": 3, 
 "modified": "2014-09-09 05:35:31.531651", 
 "modified_by": "Administrator", 
 "module": "HR", 
 "name": "Leave Application", 
 "owner": "Administrator", 
 "permissions": [
  {
   "apply_user_permissions": 1, 
   "create": 1, 
   "delete": 0, 
   "email": 1, 
   "permlevel": 0, 
   "print": 1, 
   "read": 1, 
   "report": 1, 
   "role": "Employee", 
   "user_permission_doctypes": "[\"Company\",\"Employee\",\"Fiscal Year\",\"Leave Application\"]", 
   "write": 1
  }, 
  {
   "amend": 1, 
   "cancel": 1, 
   "create": 1, 
   "delete": 1, 
   "email": 1, 
   "export": 1, 
   "import": 0, 
   "permlevel": 0, 
   "print": 1, 
   "read": 1, 
   "report": 1, 
   "role": "HR Manager", 
   "set_user_permissions": 1, 
   "submit": 1, 
   "write": 1
  }, 
  {
   "amend": 0, 
   "cancel": 0, 
   "create": 0, 
   "delete": 0, 
   "permlevel": 1, 
   "read": 1, 
   "role": "All", 
   "submit": 0
  }, 
  {
   "amend": 1, 
   "apply_user_permissions": 1, 
   "cancel": 1, 
   "create": 1, 
   "delete": 1, 
   "email": 1, 
   "export": 0, 
   "permlevel": 0, 
   "print": 1, 
   "read": 1, 
   "report": 1, 
   "role": "HR User", 
   "set_user_permissions": 1, 
   "submit": 1, 
   "user_permission_doctypes": "[\"Company\"]", 
   "write": 1
  }, 
  {
   "amend": 1, 
   "apply_user_permissions": 1, 
   "cancel": 0, 
   "create": 0, 
   "delete": 0, 
   "email": 1, 
   "permlevel": 0, 
   "print": 1, 
   "read": 1, 
   "report": 1, 
   "role": "Leave Approver", 
   "submit": 1, 
   "user_permission_doctypes": "[\"Company\",\"User\"]", 
   "write": 1
  }, 
  {
   "amend": 0, 
   "cancel": 0, 
   "create": 0, 
   "delete": 0, 
   "permlevel": 1, 
   "read": 1, 
   "report": 1, 
   "role": "HR User", 
   "submit": 0, 
   "write": 1
  }, 
  {
   "amend": 0, 
   "cancel": 0, 
   "create": 0, 
   "delete": 0, 
   "permlevel": 1, 
   "read": 1, 
   "report": 1, 
   "role": "Leave Approver", 
   "submit": 0, 
   "write": 1
  }
 ], 
 "search_fields": "employee,employee_name,leave_type,from_date,to_date,total_leave_days,fiscal_year", 
 "sort_field": "modified", 
 "sort_order": "DESC"
}