{
 "actions": [],
 "allow_import": 1,
 "autoname": "HR-SHA-.YY.-.MM.-.#####",
 "creation": "2018-04-13 16:25:04.562730",
 "doctype": "DocType",
 "editable_grid": 1,
 "engine": "InnoDB",
 "field_order": [
  "employee_details_section",
  "employee",
  "employee_name",
  "column_break_3",
  "company",
  "department",
  "shift_details_section",
  "shift_type",
  "shift_location",
  "status",
  "overtime_type",
  "column_break_brkq",
  "start_date",
  "end_date",
  "shift_request",
  "shift_schedule_assignment",
  "amended_from"
 ],
 "fields": [
  {
   "fieldname": "employee",
   "fieldtype": "Link",
   "in_standard_filter": 1,
   "label": "Employee",
   "options": "Employee",
   "reqd": 1,
   "search_index": 1
  },
  {
   "fetch_from": "employee.employee_name",
   "fieldname": "employee_name",
   "fieldtype": "Data",
   "label": "Employee Name",
   "read_only": 1
  },
  {
   "fetch_from": "employee.department",
   "fieldname": "department",
   "fieldtype": "Link",
   "label": "Department",
   "options": "Department",
   "read_only": 1
  },
  {
   "fieldname": "shift_type",
   "fieldtype": "Link",
   "in_list_view": 1,
   "in_standard_filter": 1,
   "label": "Shift Type",
   "options": "Shift Type",
   "reqd": 1,
   "search_index": 1
  },
  {
   "fieldname": "column_break_3",
   "fieldtype": "Column Break"
  },
  {
   "fetch_from": "employee.company",
   "fieldname": "company",
   "fieldtype": "Link",
   "label": "Company",
   "options": "Company",
   "reqd": 1
  },
  {
   "fieldname": "shift_request",
   "fieldtype": "Link",
   "label": "Shift Request",
   "options": "Shift Request",
   "read_only": 1
  },
  {
   "fieldname": "amended_from",
   "fieldtype": "Link",
   "label": "Amended From",
   "no_copy": 1,
   "options": "Shift Assignment",
   "print_hide": 1,
   "read_only": 1
  },
  {
   "fieldname": "start_date",
   "fieldtype": "Date",
   "in_list_view": 1,
   "label": "Start Date",
   "reqd": 1
  },
  {
   "allow_on_submit": 1,
   "fieldname": "end_date",
   "fieldtype": "Date",
   "label": "End Date"
  },
  {
   "allow_on_submit": 1,
   "default": "Active",
   "fieldname": "status",
   "fieldtype": "Select",
   "label": "Status",
   "options": "Active\nInactive"
  },
  {
   "fieldname": "employee_details_section",
   "fieldtype": "Section Break",
   "label": "Employee Details"
  },
  {
   "fieldname": "shift_details_section",
   "fieldtype": "Section Break",
   "label": "Shift Details"
  },
  {
   "fieldname": "shift_location",
   "fieldtype": "Link",
   "label": "Shift Location",
   "options": "Shift Location"
  },
  {
   "fieldname": "column_break_brkq",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "shift_schedule_assignment",
   "fieldtype": "Link",
   "label": "Shift Schedule Assignment",
   "options": "Shift Schedule Assignment",
   "read_only": 1
  },
  {
   "fetch_from": "shift_type.overtime_type",
   "fetch_if_empty": 1,
   "fieldname": "overtime_type",
   "fieldtype": "Link",
   "label": "Overtime Type",
   "options": "Overtime Type"
  }
 ],
 "is_submittable": 1,
 "links": [],
 "modified": "2025-06-24 14:28:55.135261",
 "modified_by": "Administrator",
 "module": "HR",
 "name": "Shift Assignment",
 "naming_rule": "Expression (old style)",
 "owner": "Administrator",
 "permissions": [
  {
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "Employee",
   "share": 1
  },
  {
   "amend": 1,
   "cancel": 1,
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "HR Manager",
   "share": 1,
   "submit": 1,
   "write": 1
  },
  {
   "create": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "HR User",
   "share": 1,
   "submit": 1,
   "write": 1
  }
 ],
 "row_format": "Dynamic",
 "sort_field": "creation",
 "sort_order": "DESC",
 "states": [],
 "title_field": "employee_name",
 "track_changes": 1
}
