{
 "actions": [],
 "allow_import": 1,
 "allow_rename": 1,
 "autoname": "field:salary_component",
 "creation": "2016-06-30 15:42:43.631931",
 "doctype": "DocType",
 "document_type": "Setup",
 "editable_grid": 1,
 "engine": "InnoDB",
 "field_order": [
  "salary_component",
  "salary_component_abbr",
  "type",
  "description",
  "column_break_4",
  "depends_on_payment_days",
  "is_tax_applicable",
  "is_income_tax_component",
  "deduct_full_tax_on_selected_payroll_date",
  "variable_based_on_taxable_salary",
  "exempted_from_income_tax",
  "round_to_the_nearest_integer",
  "statistical_component",
  "do_not_include_in_total",
  "disabled",
  "flexible_benefits",
  "is_flexible_benefit",
  "max_benefit_amount",
  "column_break_9",
  "pay_against_benefit_claim",
  "only_tax_impact",
  "create_separate_payment_entry_against_benefit_claim",
  "section_break_5",
  "accounts",
  "condition_and_formula",
  "condition",
  "amount",
  "amount_based_on_formula",
  "formula",
  "column_break_28",
  "help"
 ],
 "fields": [
  {
   "fieldname": "salary_component",
   "fieldtype": "Data",
   "in_list_view": 1,
   "label": "Name",
   "reqd": 1,
   "unique": 1
  },
  {
   "fieldname": "salary_component_abbr",
   "fieldtype": "Data",
   "in_list_view": 1,
   "label": "Abbr",
   "print_width": "120px",
   "reqd": 1,
   "width": "120px"
  },
  {
   "fieldname": "type",
   "fieldtype": "Select",
   "in_standard_filter": 1,
   "label": "Type",
   "options": "Earning\nDeduction",
   "reqd": 1
  },
  {
   "default": "1",
   "depends_on": "eval:doc.type == \"Earning\"",
   "fieldname": "is_tax_applicable",
   "fieldtype": "Check",
   "label": "Is Tax Applicable"
  },
  {
   "default": "1",
   "fieldname": "depends_on_payment_days",
   "fieldtype": "Check",
   "label": "Depends on Payment Days",
   "print_hide": 1
  },
  {
   "default": "0",
   "fieldname": "do_not_include_in_total",
   "fieldtype": "Check",
   "label": "Do Not Include in Total"
  },
  {
   "default": "0",
   "depends_on": "eval:doc.is_tax_applicable && doc.type=='Earning'",
   "fieldname": "deduct_full_tax_on_selected_payroll_date",
   "fieldtype": "Check",
   "label": "Deduct Full Tax on Selected Payroll Date"
  },
  {
   "fieldname": "column_break_4",
   "fieldtype": "Column Break"
  },
  {
   "default": "0",
   "fieldname": "disabled",
   "fieldtype": "Check",
   "label": "Disabled"
  },
  {
   "fieldname": "description",
   "fieldtype": "Small Text",
   "in_list_view": 1,
   "label": "Description"
  },
  {
   "default": "0",
   "description": "If selected, the value specified or calculated in this component will not contribute to the earnings or deductions. However, it's value can be referenced by other components that can be added or deducted. ",
   "fieldname": "statistical_component",
   "fieldtype": "Check",
   "label": "Statistical Component"
  },
  {
   "depends_on": "eval:doc.type==\"Earning\" && doc.statistical_component!=1",
   "fieldname": "flexible_benefits",
   "fieldtype": "Section Break",
   "label": "Flexible Benefits"
  },
  {
   "default": "0",
   "fieldname": "is_flexible_benefit",
   "fieldtype": "Check",
   "label": "Is Flexible Benefit"
  },
  {
   "depends_on": "is_flexible_benefit",
   "fieldname": "max_benefit_amount",
   "fieldtype": "Currency",
   "label": "Max Benefit Amount (Yearly)"
  },
  {
   "fieldname": "column_break_9",
   "fieldtype": "Column Break"
  },
  {
   "default": "0",
   "depends_on": "is_flexible_benefit",
   "fieldname": "pay_against_benefit_claim",
   "fieldtype": "Check",
   "label": "Pay Against Benefit Claim"
  },
  {
   "default": "0",
   "depends_on": "eval:doc.is_flexible_benefit == 1 & doc.create_separate_payment_entry_against_benefit_claim !=1",
   "fieldname": "only_tax_impact",
   "fieldtype": "Check",
   "label": "Only Tax Impact (Cannot Claim But Part of Taxable Income)"
  },
  {
   "default": "0",
   "depends_on": "eval:doc.is_flexible_benefit == 1 & doc.only_tax_impact !=1",
   "fieldname": "create_separate_payment_entry_against_benefit_claim",
   "fieldtype": "Check",
   "label": "Create Separate Payment Entry Against Benefit Claim"
  },
  {
   "default": "0",
   "depends_on": "eval:doc.type == \"Deduction\"",
   "fieldname": "variable_based_on_taxable_salary",
   "fieldtype": "Check",
   "label": "Variable Based On Taxable Salary"
  },
  {
   "depends_on": "eval:doc.statistical_component != 1",
   "fieldname": "section_break_5",
   "fieldtype": "Section Break",
   "label": "Accounts"
  },
  {
   "fieldname": "accounts",
   "fieldtype": "Table",
   "label": "Accounts",
   "options": "Salary Component Account"
  },
  {
   "collapsible": 1,
   "depends_on": "eval:doc.is_flexible_benefit != 1 && doc.variable_based_on_taxable_salary != 1",
   "fieldname": "condition_and_formula",
   "fieldtype": "Section Break",
   "label": "Condition and Formula"
  },
  {
   "fieldname": "condition",
   "fieldtype": "Code",
   "label": "Condition"
  },
  {
   "default": "0",
   "fieldname": "amount_based_on_formula",
   "fieldtype": "Check",
   "label": "Amount based on formula"
  },
  {
   "depends_on": "amount_based_on_formula",
   "fieldname": "formula",
   "fieldtype": "Code",
   "label": "Formula"
  },
  {
   "depends_on": "eval:doc.amount_based_on_formula!==1",
   "fieldname": "amount",
   "fieldtype": "Currency",
   "label": "Amount"
  },
  {
   "fieldname": "column_break_28",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "help",
   "fieldtype": "HTML",
   "label": "Help",
   "options": "<h3>Help</h3>\n\n<p>Notes:</p>\n\n<ol>\n<li>Use field <code>base</code> for using base salary of the Employee</li>\n<li>Use Salary Component abbreviations in conditions and formulas. <code>BS = Basic Salary</code></li>\n<li>Use field name for employee details in conditions and formulas. <code>Employment Type = employment_type</code><code>Branch = branch</code></li>\n<li>Use field name from Salary Slip in conditions and formulas. <code>Payment Days = payment_days</code><code>Leave without pay = leave_without_pay</code></li>\n<li>Direct Amount can also be entered based on Condtion. See example 3</li></ol>\n\n<h4>Examples</h4>\n<ol>\n<li>Calculating Basic Salary based on <code>base</code>\n<pre><code>Condition: base &lt; 10000</code></pre>\n<pre><code>Formula: base * .2</code></pre></li>\n<li>Calculating HRA based on Basic Salary<code>BS</code> \n<pre><code>Condition: BS &gt; 2000</code></pre>\n<pre><code>Formula: BS * .1</code></pre></li>\n<li>Calculating TDS based on Employment Type<code>employment_type</code> \n<pre><code>Condition: employment_type==\"Intern\"</code></pre>\n<pre><code>Amount: 1000</code></pre></li>\n</ol>"
  },
  {
   "default": "0",
   "fieldname": "round_to_the_nearest_integer",
   "fieldtype": "Check",
   "label": "Round to the Nearest Integer"
  },
  {
   "default": "0",
   "depends_on": "eval:doc.type == \"Deduction\" && !doc.variable_based_on_taxable_salary",
   "description": "If checked, the full amount will be deducted from taxable income before calculating income tax without any declaration or proof submission.",
   "fieldname": "exempted_from_income_tax",
   "fieldtype": "Check",
   "label": "Exempted from Income Tax"
  },
  {
   "default": "0",
   "depends_on": "eval:doc.type == \"Deduction\"",
   "fieldname": "is_income_tax_component",
   "fieldtype": "Check",
   "label": "Is Income Tax Component",
   "show_days": 1,
   "show_seconds": 1
  }
 ],
 "icon": "fa fa-flag",
 "links": [],
 "modified": "2020-06-22 15:39:20.826565",
 "modified_by": "Administrator",
 "module": "Payroll",
 "name": "Salary Component",
 "owner": "Administrator",
 "permissions": [
  {
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "HR User",
   "share": 1,
   "write": 1
  },
  {
   "read": 1,
   "role": "Employee"
  }
 ],
 "sort_field": "modified",
 "sort_order": "DESC"
}