Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions hrms/payroll/doctype/salary_component/salary_component.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"fieldtype": "Select",
"in_standard_filter": 1,
"label": "Type",
"options": "Earning\nDeduction",
"options": "Earning\nDeduction\nEmployer Contribution",
"reqd": 1
},
{
Expand All @@ -89,6 +89,7 @@
},
{
"default": "0",
"depends_on": "eval:doc.type != \"Employer Contribution\"",
"fieldname": "do_not_include_in_total",
"fieldtype": "Check",
"label": "Do Not Include in Total"
Expand Down Expand Up @@ -118,13 +119,15 @@
},
{
"default": "0",
"depends_on": "eval:doc.type != \"Employer Contribution\"",
"description": "If enabled, 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"
},
{
"default": "0",
"depends_on": "eval:doc.type != \"Employer Contribution\"",
"fieldname": "is_flexible_benefit",
"fieldtype": "Check",
"label": "Is Flexible Benefit"
Expand All @@ -150,7 +153,7 @@
"search_index": 1
},
{
"depends_on": "eval:doc.statistical_component != 1",
"depends_on": "eval:doc.statistical_component != 1 && doc.type != \"Employer Contribution\"",
"fieldname": "section_break_5",
"fieldtype": "Section Break",
"label": "Accounts"
Expand Down Expand Up @@ -241,7 +244,7 @@
},
{
"default": "1",
"depends_on": "eval:!doc.statistical_component",
"depends_on": "eval:!doc.statistical_component && doc.type != \"Employer Contribution\"",
"description": "If enabled, the component will not be displayed in the salary slip if the amount is zero",
"fieldname": "remove_if_zero_valued",
"fieldtype": "Check",
Expand All @@ -257,6 +260,7 @@
},
{
"default": "0",
"depends_on": "eval:doc.type != \"Employer Contribution\"",
"description": "If enabled, this component will be included in arrear calculations",
"fieldname": "arrear_component",
"fieldtype": "Check",
Expand Down Expand Up @@ -291,7 +295,7 @@
"icon": "fa fa-flag",
"index_web_pages_for_search": 1,
"links": [],
"modified": "2026-03-26 15:07:25.464240",
"modified": "2026-06-08 17:39:39.847210",
"modified_by": "Administrator",
"module": "Payroll",
"name": "Salary Component",
Expand Down
Loading
Loading