{
 "actions": [],
 "autoname": "EDU-SLA-.YYYY.-.#####",
 "creation": "2016-11-28 15:38:54.793854",
 "doctype": "DocType",
 "editable_grid": 1,
 "engine": "InnoDB",
 "field_order": [
  "student",
  "student_name",
  "column_break_3",
  "from_date",
  "to_date",
  "total_leave_days",
  "section_break_5",
  "attendance_based_on",
  "student_group",
  "course_schedule",
  "mark_as_present",
  "column_break_11",
  "reason",
  "amended_from"
 ],
 "fields": [
  {
   "fieldname": "student",
   "fieldtype": "Link",
   "in_global_search": 1,
   "label": "Student",
   "options": "Student",
   "reqd": 1
  },
  {
   "fetch_from": "student.title",
   "fieldname": "student_name",
   "fieldtype": "Read Only",
   "in_global_search": 1,
   "label": "Student Name",
   "read_only": 1
  },
  {
   "fieldname": "column_break_3",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "from_date",
   "fieldtype": "Date",
   "in_list_view": 1,
   "in_standard_filter": 1,
   "label": "From Date",
   "reqd": 1
  },
  {
   "fieldname": "to_date",
   "fieldtype": "Date",
   "in_list_view": 1,
   "label": "To Date",
   "reqd": 1
  },
  {
   "default": "0",
   "description": "Check this to mark the student as present in case the student is not attending the institute to participate or represent the institute in any event.\n\n",
   "fieldname": "mark_as_present",
   "fieldtype": "Check",
   "label": "Mark as Present"
  },
  {
   "fieldname": "section_break_5",
   "fieldtype": "Section Break"
  },
  {
   "fieldname": "reason",
   "fieldtype": "Text",
   "label": "Reason"
  },
  {
   "fieldname": "amended_from",
   "fieldtype": "Link",
   "label": "Amended From",
   "no_copy": 1,
   "options": "Student Leave Application",
   "print_hide": 1,
   "read_only": 1
  },
  {
   "allow_in_quick_entry": 1,
   "default": "Student Group",
   "fieldname": "attendance_based_on",
   "fieldtype": "Select",
   "label": "Attendance Based On",
   "options": "Student Group\nCourse Schedule"
  },
  {
   "allow_in_quick_entry": 1,
   "depends_on": "eval:doc.attendance_based_on === \"Student Group\";",
   "fieldname": "student_group",
   "fieldtype": "Link",
   "label": "Student Group",
   "mandatory_depends_on": "eval:doc.attendance_based_on === \"Student Group\";",
   "options": "Student Group"
  },
  {
   "allow_in_quick_entry": 1,
   "depends_on": "eval:doc.attendance_based_on === \"Course Schedule\";",
   "fieldname": "course_schedule",
   "fieldtype": "Link",
   "label": "Course Schedule",
   "mandatory_depends_on": "eval:doc.attendance_based_on === \"Course Schedule\";",
   "options": "Course Schedule"
  },
  {
   "fieldname": "column_break_11",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "total_leave_days",
   "fieldtype": "Float",
   "label": "Total Leave Days",
   "read_only": 1
  }
 ],
 "is_submittable": 1,
 "links": [],
 "modified": "2020-09-21 18:10:24.440669",
 "modified_by": "Administrator",
 "module": "Education",
 "name": "Student Leave Application",
 "owner": "Administrator",
 "permissions": [
  {
   "amend": 1,
   "cancel": 1,
   "create": 1,
   "delete": 1,
   "email": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "Instructor",
   "submit": 1,
   "write": 1
  },
  {
   "amend": 1,
   "cancel": 1,
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "Academics User",
   "share": 1,
   "submit": 1,
   "write": 1
  }
 ],
 "quick_entry": 1,
 "restrict_to_domain": "Education",
 "show_name_in_global_search": 1,
 "sort_field": "modified",
 "sort_order": "DESC",
 "title_field": "student_name"
}