{
 "actions": [],
 "autoname": "Prompt",
 "creation": "2020-08-05 19:00:36.103500",
 "doctype": "DocType",
 "editable_grid": 1,
 "engine": "InnoDB",
 "field_order": [
  "gratuity_details_tab",
  "disable",
  "section_break_2",
  "calculate_gratuity_amount_based_on",
  "total_working_days_per_year",
  "column_break_3",
  "work_experience_calculation_function",
  "minimum_year_for_gratuity",
  "column_break_8",
  "applicable_earnings_component",
  "gratuity_rules_section",
  "gratuity_rule_slabs"
 ],
 "fields": [
  {
   "default": "0",
   "fieldname": "disable",
   "fieldtype": "Check",
   "label": "Disable"
  },
  {
   "fieldname": "calculate_gratuity_amount_based_on",
   "fieldtype": "Select",
   "in_list_view": 1,
   "label": "Calculate Gratuity Amount Based On",
   "options": "Current Slab\nSum of all previous slabs",
   "reqd": 1
  },
  {
   "description": "Salary components should be part of the Salary Structure.",
   "fieldname": "applicable_earnings_component",
   "fieldtype": "Table MultiSelect",
   "label": "Applicable Earnings Component",
   "options": "Gratuity Applicable Component",
   "reqd": 1
  },
  {
   "fieldname": "column_break_3",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "gratuity_rules_section",
   "fieldtype": "Section Break",
   "label": "Rules"
  },
  {
   "description": "Set \"From(Year)\" and \"To(Year)\" to 0 for no upper and lower limit.",
   "fieldname": "gratuity_rule_slabs",
   "fieldtype": "Table",
   "label": "Current Work Experience",
   "options": "Gratuity Rule Slab",
   "reqd": 1
  },
  {
   "default": "Round off Work Experience",
   "fieldname": "work_experience_calculation_function",
   "fieldtype": "Select",
   "label": "Work Experience Calculation Method",
   "options": "Round off Work Experience\nTake Exact Completed Years\nManual"
  },
  {
   "default": "365",
   "fieldname": "total_working_days_per_year",
   "fieldtype": "Float",
   "label": "Total working Days Per Year"
  },
  {
   "fieldname": "minimum_year_for_gratuity",
   "fieldtype": "Int",
   "label": "Minimum Year for Gratuity"
  },
  {
   "fieldname": "section_break_2",
   "fieldtype": "Section Break"
  },
  {
   "fieldname": "column_break_8",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "gratuity_details_tab",
   "fieldtype": "Section Break",
   "label": "Gratuity"
  }
 ],
 "index_web_pages_for_search": 1,
 "links": [],
 "modified": "2025-07-21 13:59:20.212312",
 "modified_by": "Administrator",
 "module": "Payroll",
 "name": "Gratuity Rule",
 "naming_rule": "Set by user",
 "owner": "Administrator",
 "permissions": [
  {
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "HR Manager",
   "share": 1,
   "write": 1
  },
  {
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "HR User",
   "share": 1,
   "write": 1
  }
 ],
 "row_format": "Dynamic",
 "sort_field": "creation",
 "sort_order": "DESC",
 "states": [],
 "track_changes": 1
}
