From f914bd374d22134ecc81c3bf12bad8714cd077e3 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Sat, 14 Apr 2018 12:38:55 +0530 Subject: [PATCH] Added links in HR module --- erpnext/config/hr.py | 129 +++++++++++- .../en/human-resources/health-insurance.md | 4 +- erpnext/hr/doctype/employee/employee.json | 2 +- .../employee_life_cycle_process_template.js | 8 - .../employee_life_cycle_process_template.json | 194 ------------------ .../employee_life_cycle_process_template.py | 10 - ...st_employee_life_cycle_process_template.js | 23 --- ...st_employee_life_cycle_process_template.py | 10 - .../__init__.py | 0 ...oyee_life_cycle_process_template_detail.py | 10 - .../employee_lifecycle_process_template.json | 4 +- .../__init__.py | 0 ..._lifecycle_process_template_activity.json} | 6 +- ...ee_lifecycle_process_template_activity.py} | 2 +- .../__init__.py | 0 .../employee_tax_excemption_category.js | 8 - .../employee_tax_excemption_category.json | 194 ------------------ .../test_employee_tax_excemption_category.js | 23 --- .../test_employee_tax_excemption_category.py | 10 - .../hr/doctype/health_insurance/__init__.py | 0 .../health_insurance/health_insurance.js | 8 - .../health_insurance/health_insurance.json | 115 ----------- .../health_insurance/health_insurance.py | 10 - .../health_insurance/test_health_insurance.js | 23 --- .../health_insurance/test_health_insurance.py | 10 - 25 files changed, 127 insertions(+), 676 deletions(-) delete mode 100644 erpnext/hr/doctype/employee_life_cycle_process_template/employee_life_cycle_process_template.js delete mode 100644 erpnext/hr/doctype/employee_life_cycle_process_template/employee_life_cycle_process_template.json delete mode 100644 erpnext/hr/doctype/employee_life_cycle_process_template/employee_life_cycle_process_template.py delete mode 100644 erpnext/hr/doctype/employee_life_cycle_process_template/test_employee_life_cycle_process_template.js delete mode 100644 erpnext/hr/doctype/employee_life_cycle_process_template/test_employee_life_cycle_process_template.py delete mode 100644 erpnext/hr/doctype/employee_life_cycle_process_template_detail/__init__.py delete mode 100644 erpnext/hr/doctype/employee_life_cycle_process_template_detail/employee_life_cycle_process_template_detail.py rename erpnext/hr/doctype/{employee_life_cycle_process_template => employee_lifecycle_process_template_activity}/__init__.py (100%) rename erpnext/hr/doctype/{employee_life_cycle_process_template_detail/employee_life_cycle_process_template_detail.json => employee_lifecycle_process_template_activity/employee_lifecycle_process_template_activity.json} (95%) rename erpnext/hr/doctype/{employee_tax_excemption_category/employee_tax_excemption_category.py => employee_lifecycle_process_template_activity/employee_lifecycle_process_template_activity.py} (81%) delete mode 100644 erpnext/hr/doctype/employee_tax_excemption_category/__init__.py delete mode 100644 erpnext/hr/doctype/employee_tax_excemption_category/employee_tax_excemption_category.js delete mode 100644 erpnext/hr/doctype/employee_tax_excemption_category/employee_tax_excemption_category.json delete mode 100644 erpnext/hr/doctype/employee_tax_excemption_category/test_employee_tax_excemption_category.js delete mode 100644 erpnext/hr/doctype/employee_tax_excemption_category/test_employee_tax_excemption_category.py delete mode 100644 erpnext/hr/doctype/health_insurance/__init__.py delete mode 100644 erpnext/hr/doctype/health_insurance/health_insurance.js delete mode 100644 erpnext/hr/doctype/health_insurance/health_insurance.json delete mode 100644 erpnext/hr/doctype/health_insurance/health_insurance.py delete mode 100644 erpnext/hr/doctype/health_insurance/test_health_insurance.js delete mode 100644 erpnext/hr/doctype/health_insurance/test_health_insurance.py diff --git a/erpnext/config/hr.py b/erpnext/config/hr.py index 4cd1b14a00..85d917bb87 100644 --- a/erpnext/config/hr.py +++ b/erpnext/config/hr.py @@ -23,12 +23,16 @@ def get_data(): "name": "Attendance", "description": _("Attendance record."), }, + { + "type": "doctype", + "name": "Attendance Request", + }, { "type": "doctype", "name": "Upload Attendance", "description":_("Upload attendance from a .csv file"), "hide_count": True - }, + } ] }, { @@ -59,6 +63,22 @@ def get_data(): "name": "Leave Application", "description": _("Applications for leave."), }, + { + "type": "doctype", + "name": "Compensatory Leave Request", + }, + { + "type": "doctype", + "name": "Leave Period", + }, + { + "type": "doctype", + "name": "Leave Policy", + }, + { + "type": "doctype", + "name": "Leave Encashment", + }, { "type": "doctype", "name":"Leave Type", @@ -89,33 +109,94 @@ def get_data(): ] }, + { + "label": _("Employee Lifecycle"), + "items": [ + { + "type": "doctype", + "name": "Employee Transfer", + }, + { + "type": "doctype", + "name": "Employee Promotion", + }, + { + "type": "doctype", + "name": "Employee Lifecycle Activity", + }, + { + "type": "doctype", + "name": "Employee Lifecycle Activity Type", + }, + { + "type": "doctype", + "name": "Employee Lifecycle Process Template", + }, + { + "type": "doctype", + "name": "Employee Lifecycle Process", + } + ] + }, { "label": _("Payroll"), "items": [ + { + "type": "doctype", + "name": "Salary Structure Assignment", + }, { "type": "doctype", "name": "Salary Slip", - "description": _("Monthly salary statement."), }, { "type": "doctype", "name": "Payroll Entry", "label": _("Payroll Entry"), - "description":_("Generate Salary Slips"), "hide_count": True }, { "type": "doctype", - "name": "Salary Structure", - "description": _("Salary template master.") + "name": "Employee Benefit Claim", + }, + { + "type": "doctype", + "name": "Employee Incentive", + }, + { + "type": "doctype", + "name": "Employee Benefit Application", + }, + { + "type": "doctype", + "name": "Employee Tax Exemption Proof Submission", + }, + { + "type": "doctype", + "name": "Employee Tax Exemption Declaration", + } + ] + }, + { + "label": _("Payroll Setup"), + "items": [ + { + "type": "doctype", + "name": "Payroll Period", }, { "type": "doctype", "name": "Salary Component", - "label": _("Salary Components"), - "description": _("Earnings, Deductions and other Salary components") }, - + { + "type": "doctype", + "name": "Salary Structure", + }, + { + "type": "doctype", + "name": "Employee Tax Exemption Category", + }, + ] }, { @@ -199,7 +280,27 @@ def get_data(): }, ] }, - + { + "label": _("Shift Management"), + "items": [ + { + "type": "doctype", + "name": "Shift Type", + }, + { + "type": "doctype", + "name": "Shift Request", + }, + { + "type": "doctype", + "name": "Shift Assignment", + }, + { + "type": "doctype", + "name": "Shift Assignment Tool", + } + ] + }, { "label": _("Fleet Management"), "items": [ @@ -248,7 +349,15 @@ def get_data(): }, { "type": "doctype", - "name": "Health Insurance" + "name": "Employee Health Insurance" + }, + { + "type": "doctype", + "name": "Staffing Plan", + }, + { + "type": "doctype", + "name": "Employee Grade", } ] }, diff --git a/erpnext/docs/user/manual/en/human-resources/health-insurance.md b/erpnext/docs/user/manual/en/human-resources/health-insurance.md index ed4d778757..af4bee9072 100644 --- a/erpnext/docs/user/manual/en/human-resources/health-insurance.md +++ b/erpnext/docs/user/manual/en/human-resources/health-insurance.md @@ -1,6 +1,4 @@ -# Health Insurance - -Health Insurance is an important information attached to Employee. +# Employee Health Insurance To create Health Insurance Provider: diff --git a/erpnext/hr/doctype/employee/employee.json b/erpnext/hr/doctype/employee/employee.json index 39383ffd59..a1f37608ed 100644 --- a/erpnext/hr/doctype/employee/employee.json +++ b/erpnext/hr/doctype/employee/employee.json @@ -640,7 +640,7 @@ "label": "Health Insurance Provider", "length": 0, "no_copy": 0, - "options": "Health Insurance", + "options": "Employee Health Insurance", "permlevel": 0, "precision": "", "print_hide": 0, diff --git a/erpnext/hr/doctype/employee_life_cycle_process_template/employee_life_cycle_process_template.js b/erpnext/hr/doctype/employee_life_cycle_process_template/employee_life_cycle_process_template.js deleted file mode 100644 index d525a00fef..0000000000 --- a/erpnext/hr/doctype/employee_life_cycle_process_template/employee_life_cycle_process_template.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Employee Life Cycle Process Template', { - refresh: function(frm) { - - } -}); diff --git a/erpnext/hr/doctype/employee_life_cycle_process_template/employee_life_cycle_process_template.json b/erpnext/hr/doctype/employee_life_cycle_process_template/employee_life_cycle_process_template.json deleted file mode 100644 index 087e1057f7..0000000000 --- a/erpnext/hr/doctype/employee_life_cycle_process_template/employee_life_cycle_process_template.json +++ /dev/null @@ -1,194 +0,0 @@ -{ - "allow_copy": 0, - "allow_guest_to_view": 0, - "allow_import": 0, - "allow_rename": 0, - "autoname": "ELCP.#####", - "beta": 0, - "creation": "2018-04-13 17:40:38.806266", - "custom": 0, - "docstatus": 0, - "doctype": "DocType", - "document_type": "", - "editable_grid": 1, - "engine": "InnoDB", - "fields": [ - { - "allow_bulk_edit": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "columns": 0, - "fieldname": "process_section", - "fieldtype": "Section Break", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_standard_filter": 0, - "label": "Lifecycle Process Details", - "length": 0, - "no_copy": 0, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 0, - "remember_last_selected_value": 0, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "set_only_once": 0, - "translatable": 0, - "unique": 0 - }, - { - "allow_bulk_edit": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "columns": 0, - "fieldname": "process_details", - "fieldtype": "Table", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_standard_filter": 0, - "label": "Employee Lifecycle Process Template Detail", - "length": 0, - "no_copy": 0, - "options": "Employee Lifecycle Process Template Detail", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 0, - "remember_last_selected_value": 0, - "report_hide": 0, - "reqd": 1, - "search_index": 0, - "set_only_once": 0, - "translatable": 0, - "unique": 0 - }, - { - "allow_bulk_edit": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "columns": 0, - "fieldname": "amended_from", - "fieldtype": "Link", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_standard_filter": 0, - "label": "Amended From", - "length": 0, - "no_copy": 1, - "options": "Employee Life Cycle Process Template", - "permlevel": 0, - "print_hide": 1, - "print_hide_if_no_value": 0, - "read_only": 1, - "remember_last_selected_value": 0, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "set_only_once": 0, - "translatable": 0, - "unique": 0 - } - ], - "has_web_view": 0, - "hide_heading": 0, - "hide_toolbar": 0, - "idx": 0, - "image_view": 0, - "in_create": 0, - "is_submittable": 1, - "issingle": 0, - "istable": 0, - "max_attachments": 0, - "modified": "2018-04-13 18:57:48.489059", - "modified_by": "Administrator", - "module": "HR", - "name": "Employee Life Cycle Process Template", - "name_case": "", - "owner": "Administrator", - "permissions": [ - { - "amend": 0, - "cancel": 0, - "create": 0, - "delete": 0, - "email": 1, - "export": 1, - "if_owner": 0, - "import": 0, - "permlevel": 0, - "print": 1, - "read": 1, - "report": 1, - "role": "Employee", - "set_user_permissions": 0, - "share": 1, - "submit": 0, - "write": 0 - }, - { - "amend": 0, - "cancel": 0, - "create": 1, - "delete": 0, - "email": 1, - "export": 1, - "if_owner": 0, - "import": 0, - "permlevel": 0, - "print": 1, - "read": 1, - "report": 1, - "role": "HR User", - "set_user_permissions": 0, - "share": 1, - "submit": 1, - "write": 1 - }, - { - "amend": 1, - "cancel": 1, - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "if_owner": 0, - "import": 0, - "permlevel": 0, - "print": 1, - "read": 1, - "report": 1, - "role": "HR Manager", - "set_user_permissions": 0, - "share": 1, - "submit": 1, - "write": 1 - } - ], - "quick_entry": 1, - "read_only": 0, - "read_only_onload": 0, - "show_name_in_global_search": 0, - "sort_field": "modified", - "sort_order": "DESC", - "track_changes": 1, - "track_seen": 0 -} \ No newline at end of file diff --git a/erpnext/hr/doctype/employee_life_cycle_process_template/employee_life_cycle_process_template.py b/erpnext/hr/doctype/employee_life_cycle_process_template/employee_life_cycle_process_template.py deleted file mode 100644 index a7cf2ba8e3..0000000000 --- a/erpnext/hr/doctype/employee_life_cycle_process_template/employee_life_cycle_process_template.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors -# For license information, please see license.txt - -from __future__ import unicode_literals -import frappe -from frappe.model.document import Document - -class EmployeeLifeCycleProcessTemplate(Document): - pass diff --git a/erpnext/hr/doctype/employee_life_cycle_process_template/test_employee_life_cycle_process_template.js b/erpnext/hr/doctype/employee_life_cycle_process_template/test_employee_life_cycle_process_template.js deleted file mode 100644 index 3b035e633f..0000000000 --- a/erpnext/hr/doctype/employee_life_cycle_process_template/test_employee_life_cycle_process_template.js +++ /dev/null @@ -1,23 +0,0 @@ -/* eslint-disable */ -// rename this file from _test_[name] to test_[name] to activate -// and remove above this line - -QUnit.test("test: Employee Life Cycle Process Template", function (assert) { - let done = assert.async(); - - // number of asserts - assert.expect(1); - - frappe.run_serially([ - // insert a new Employee Life Cycle Process Template - () => frappe.tests.make('Employee Life Cycle Process Template', [ - // values to be set - {key: 'value'} - ]), - () => { - assert.equal(cur_frm.doc.key, 'value'); - }, - () => done() - ]); - -}); diff --git a/erpnext/hr/doctype/employee_life_cycle_process_template/test_employee_life_cycle_process_template.py b/erpnext/hr/doctype/employee_life_cycle_process_template/test_employee_life_cycle_process_template.py deleted file mode 100644 index a6115bb5cb..0000000000 --- a/erpnext/hr/doctype/employee_life_cycle_process_template/test_employee_life_cycle_process_template.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and Contributors -# See license.txt -from __future__ import unicode_literals - -import frappe -import unittest - -class TestEmployeeLifeCycleProcessTemplate(unittest.TestCase): - pass diff --git a/erpnext/hr/doctype/employee_life_cycle_process_template_detail/__init__.py b/erpnext/hr/doctype/employee_life_cycle_process_template_detail/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/erpnext/hr/doctype/employee_life_cycle_process_template_detail/employee_life_cycle_process_template_detail.py b/erpnext/hr/doctype/employee_life_cycle_process_template_detail/employee_life_cycle_process_template_detail.py deleted file mode 100644 index 3406cf551e..0000000000 --- a/erpnext/hr/doctype/employee_life_cycle_process_template_detail/employee_life_cycle_process_template_detail.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors -# For license information, please see license.txt - -from __future__ import unicode_literals -import frappe -from frappe.model.document import Document - -class EmployeeLifeCycleProcessTemplateDetail(Document): - pass diff --git a/erpnext/hr/doctype/employee_lifecycle_process_template/employee_lifecycle_process_template.json b/erpnext/hr/doctype/employee_lifecycle_process_template/employee_lifecycle_process_template.json index df5db6c30f..582a94f4ac 100644 --- a/erpnext/hr/doctype/employee_lifecycle_process_template/employee_lifecycle_process_template.json +++ b/erpnext/hr/doctype/employee_lifecycle_process_template/employee_lifecycle_process_template.json @@ -62,7 +62,7 @@ "label": "Employee Lifecycle Process Template Detail", "length": 0, "no_copy": 0, - "options": "Employee Lifecycle Process Template Detail", + "options": "Employee Lifecycle Process Template Activity", "permlevel": 0, "precision": "", "print_hide": 0, @@ -118,7 +118,7 @@ "issingle": 0, "istable": 0, "max_attachments": 0, - "modified": "2018-04-13 18:57:55.627207", + "modified": "2018-04-14 11:35:19.465613", "modified_by": "Administrator", "module": "HR", "name": "Employee Lifecycle Process Template", diff --git a/erpnext/hr/doctype/employee_life_cycle_process_template/__init__.py b/erpnext/hr/doctype/employee_lifecycle_process_template_activity/__init__.py similarity index 100% rename from erpnext/hr/doctype/employee_life_cycle_process_template/__init__.py rename to erpnext/hr/doctype/employee_lifecycle_process_template_activity/__init__.py diff --git a/erpnext/hr/doctype/employee_life_cycle_process_template_detail/employee_life_cycle_process_template_detail.json b/erpnext/hr/doctype/employee_lifecycle_process_template_activity/employee_lifecycle_process_template_activity.json similarity index 95% rename from erpnext/hr/doctype/employee_life_cycle_process_template_detail/employee_life_cycle_process_template_detail.json rename to erpnext/hr/doctype/employee_lifecycle_process_template_activity/employee_lifecycle_process_template_activity.json index e6670e81f8..6d3c96cf4b 100644 --- a/erpnext/hr/doctype/employee_life_cycle_process_template_detail/employee_life_cycle_process_template_detail.json +++ b/erpnext/hr/doctype/employee_lifecycle_process_template_activity/employee_lifecycle_process_template_activity.json @@ -4,7 +4,7 @@ "allow_import": 0, "allow_rename": 0, "beta": 0, - "creation": "2018-04-13 17:38:53.419981", + "creation": "2018-04-14 11:34:30.508196", "custom": 0, "docstatus": 0, "doctype": "DocType", @@ -119,10 +119,10 @@ "issingle": 0, "istable": 1, "max_attachments": 0, - "modified": "2018-04-13 18:41:46.695599", + "modified": "2018-04-14 11:34:30.508196", "modified_by": "Administrator", "module": "HR", - "name": "Employee Life Cycle Process Template Detail", + "name": "Employee Lifecycle Process Template Activity", "name_case": "", "owner": "Administrator", "permissions": [], diff --git a/erpnext/hr/doctype/employee_tax_excemption_category/employee_tax_excemption_category.py b/erpnext/hr/doctype/employee_lifecycle_process_template_activity/employee_lifecycle_process_template_activity.py similarity index 81% rename from erpnext/hr/doctype/employee_tax_excemption_category/employee_tax_excemption_category.py rename to erpnext/hr/doctype/employee_lifecycle_process_template_activity/employee_lifecycle_process_template_activity.py index 1586bf136c..eeea2366b1 100644 --- a/erpnext/hr/doctype/employee_tax_excemption_category/employee_tax_excemption_category.py +++ b/erpnext/hr/doctype/employee_lifecycle_process_template_activity/employee_lifecycle_process_template_activity.py @@ -6,5 +6,5 @@ from __future__ import unicode_literals import frappe from frappe.model.document import Document -class EmployeeTaxExcemptionCategory(Document): +class EmployeeLifecycleProcessTemplateActivity(Document): pass diff --git a/erpnext/hr/doctype/employee_tax_excemption_category/__init__.py b/erpnext/hr/doctype/employee_tax_excemption_category/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/erpnext/hr/doctype/employee_tax_excemption_category/employee_tax_excemption_category.js b/erpnext/hr/doctype/employee_tax_excemption_category/employee_tax_excemption_category.js deleted file mode 100644 index 2c4377cdbd..0000000000 --- a/erpnext/hr/doctype/employee_tax_excemption_category/employee_tax_excemption_category.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Employee Tax Excemption Category', { - refresh: function(frm) { - - } -}); diff --git a/erpnext/hr/doctype/employee_tax_excemption_category/employee_tax_excemption_category.json b/erpnext/hr/doctype/employee_tax_excemption_category/employee_tax_excemption_category.json deleted file mode 100644 index e49e780ffa..0000000000 --- a/erpnext/hr/doctype/employee_tax_excemption_category/employee_tax_excemption_category.json +++ /dev/null @@ -1,194 +0,0 @@ -{ - "allow_copy": 0, - "allow_guest_to_view": 0, - "allow_import": 1, - "allow_rename": 1, - "autoname": "Prompt", - "beta": 0, - "creation": "2018-04-13 16:51:36.971140", - "custom": 0, - "docstatus": 0, - "doctype": "DocType", - "document_type": "", - "editable_grid": 1, - "engine": "InnoDB", - "fields": [ - { - "allow_bulk_edit": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "columns": 0, - "fieldname": "deduction_component", - "fieldtype": "Link", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_standard_filter": 0, - "label": "Deduction Component", - "length": 0, - "no_copy": 0, - "options": "Salary Component", - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 0, - "remember_last_selected_value": 0, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "set_only_once": 0, - "translatable": 0, - "unique": 0 - }, - { - "allow_bulk_edit": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "columns": 0, - "fieldname": "max_amount", - "fieldtype": "Currency", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_standard_filter": 0, - "label": "Max Amount", - "length": 0, - "no_copy": 0, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 0, - "remember_last_selected_value": 0, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "set_only_once": 0, - "translatable": 0, - "unique": 0 - }, - { - "allow_bulk_edit": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "columns": 0, - "fieldname": "is_active", - "fieldtype": "Check", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_standard_filter": 0, - "label": "Is Active", - "length": 0, - "no_copy": 0, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 0, - "remember_last_selected_value": 0, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "set_only_once": 0, - "translatable": 0, - "unique": 0 - } - ], - "has_web_view": 0, - "hide_heading": 0, - "hide_toolbar": 0, - "idx": 0, - "image_view": 0, - "in_create": 0, - "is_submittable": 0, - "issingle": 0, - "istable": 0, - "max_attachments": 0, - "modified": "2018-04-13 16:52:11.640756", - "modified_by": "Administrator", - "module": "HR", - "name": "Employee Tax Excemption Category", - "name_case": "", - "owner": "Administrator", - "permissions": [ - { - "amend": 0, - "cancel": 0, - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "if_owner": 0, - "import": 0, - "permlevel": 0, - "print": 1, - "read": 1, - "report": 1, - "role": "System Manager", - "set_user_permissions": 0, - "share": 1, - "submit": 0, - "write": 1 - }, - { - "amend": 0, - "cancel": 0, - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "if_owner": 0, - "import": 0, - "permlevel": 0, - "print": 1, - "read": 1, - "report": 1, - "role": "HR Manager", - "set_user_permissions": 0, - "share": 1, - "submit": 0, - "write": 1 - }, - { - "amend": 0, - "cancel": 0, - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "if_owner": 0, - "import": 0, - "permlevel": 0, - "print": 1, - "read": 1, - "report": 1, - "role": "HR User", - "set_user_permissions": 0, - "share": 1, - "submit": 0, - "write": 1 - } - ], - "quick_entry": 1, - "read_only": 0, - "read_only_onload": 0, - "show_name_in_global_search": 0, - "sort_field": "modified", - "sort_order": "DESC", - "track_changes": 1, - "track_seen": 0 -} \ No newline at end of file diff --git a/erpnext/hr/doctype/employee_tax_excemption_category/test_employee_tax_excemption_category.js b/erpnext/hr/doctype/employee_tax_excemption_category/test_employee_tax_excemption_category.js deleted file mode 100644 index 3872438079..0000000000 --- a/erpnext/hr/doctype/employee_tax_excemption_category/test_employee_tax_excemption_category.js +++ /dev/null @@ -1,23 +0,0 @@ -/* eslint-disable */ -// rename this file from _test_[name] to test_[name] to activate -// and remove above this line - -QUnit.test("test: Employee Tax Excemption Category", function (assert) { - let done = assert.async(); - - // number of asserts - assert.expect(1); - - frappe.run_serially([ - // insert a new Employee Tax Excemption Category - () => frappe.tests.make('Employee Tax Excemption Category', [ - // values to be set - {key: 'value'} - ]), - () => { - assert.equal(cur_frm.doc.key, 'value'); - }, - () => done() - ]); - -}); diff --git a/erpnext/hr/doctype/employee_tax_excemption_category/test_employee_tax_excemption_category.py b/erpnext/hr/doctype/employee_tax_excemption_category/test_employee_tax_excemption_category.py deleted file mode 100644 index 7438f6464c..0000000000 --- a/erpnext/hr/doctype/employee_tax_excemption_category/test_employee_tax_excemption_category.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and Contributors -# See license.txt -from __future__ import unicode_literals - -import frappe -import unittest - -class TestEmployeeTaxExcemptionCategory(unittest.TestCase): - pass diff --git a/erpnext/hr/doctype/health_insurance/__init__.py b/erpnext/hr/doctype/health_insurance/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/erpnext/hr/doctype/health_insurance/health_insurance.js b/erpnext/hr/doctype/health_insurance/health_insurance.js deleted file mode 100644 index 504da27b2e..0000000000 --- a/erpnext/hr/doctype/health_insurance/health_insurance.js +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors -// For license information, please see license.txt - -frappe.ui.form.on('Health Insurance', { - refresh: function(frm) { - - } -}); diff --git a/erpnext/hr/doctype/health_insurance/health_insurance.json b/erpnext/hr/doctype/health_insurance/health_insurance.json deleted file mode 100644 index 301f0e5c1d..0000000000 --- a/erpnext/hr/doctype/health_insurance/health_insurance.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "allow_copy": 0, - "allow_guest_to_view": 0, - "allow_import": 0, - "allow_rename": 1, - "autoname": "field:health_insurance_name", - "beta": 0, - "creation": "2017-03-27 14:32:51.628588", - "custom": 0, - "docstatus": 0, - "doctype": "DocType", - "document_type": "Document", - "editable_grid": 1, - "engine": "InnoDB", - "fields": [ - { - "allow_bulk_edit": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "columns": 0, - "fieldname": "health_insurance_name", - "fieldtype": "Data", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_global_search": 0, - "in_list_view": 1, - "in_standard_filter": 0, - "label": "Health Insurance Name", - "length": 0, - "no_copy": 0, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 0, - "remember_last_selected_value": 0, - "report_hide": 0, - "reqd": 1, - "search_index": 0, - "set_only_once": 0, - "translatable": 0, - "unique": 0 - } - ], - "has_web_view": 0, - "hide_heading": 0, - "hide_toolbar": 0, - "idx": 0, - "image_view": 0, - "in_create": 0, - "is_submittable": 0, - "issingle": 0, - "istable": 0, - "max_attachments": 0, - "modified": "2018-03-13 08:19:33.710429", - "modified_by": "Administrator", - "module": "HR", - "name": "Health Insurance", - "name_case": "", - "owner": "Administrator", - "permissions": [ - { - "amend": 0, - "apply_user_permissions": 0, - "cancel": 0, - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "if_owner": 0, - "import": 0, - "permlevel": 0, - "print": 1, - "read": 1, - "report": 1, - "role": "HR Manager", - "set_user_permissions": 0, - "share": 1, - "submit": 0, - "write": 1 - }, - { - "amend": 0, - "apply_user_permissions": 0, - "cancel": 0, - "create": 0, - "delete": 0, - "email": 1, - "export": 1, - "if_owner": 0, - "import": 0, - "permlevel": 0, - "print": 1, - "read": 1, - "report": 1, - "role": "HR User", - "set_user_permissions": 0, - "share": 1, - "submit": 0, - "write": 0 - } - ], - "quick_entry": 1, - "read_only": 0, - "read_only_onload": 0, - "show_name_in_global_search": 0, - "sort_field": "modified", - "sort_order": "DESC", - "title_field": "health_insurance_name", - "track_changes": 1, - "track_seen": 0 -} \ No newline at end of file diff --git a/erpnext/hr/doctype/health_insurance/health_insurance.py b/erpnext/hr/doctype/health_insurance/health_insurance.py deleted file mode 100644 index c2802543eb..0000000000 --- a/erpnext/hr/doctype/health_insurance/health_insurance.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors -# For license information, please see license.txt - -from __future__ import unicode_literals -import frappe -from frappe.model.document import Document - -class HealthInsurance(Document): - pass diff --git a/erpnext/hr/doctype/health_insurance/test_health_insurance.js b/erpnext/hr/doctype/health_insurance/test_health_insurance.js deleted file mode 100644 index 81b0f8d331..0000000000 --- a/erpnext/hr/doctype/health_insurance/test_health_insurance.js +++ /dev/null @@ -1,23 +0,0 @@ -/* eslint-disable */ -// rename this file from _test_[name] to test_[name] to activate -// and remove above this line - -QUnit.test("test: Health Insurance", function (assert) { - let done = assert.async(); - - // number of asserts - assert.expect(1); - - frappe.run_serially([ - // insert a new Health Insurance - () => frappe.tests.make('Health Insurance', [ - // values to be set - {key: 'value'} - ]), - () => { - assert.equal(cur_frm.doc.key, 'value'); - }, - () => done() - ]); - -}); diff --git a/erpnext/hr/doctype/health_insurance/test_health_insurance.py b/erpnext/hr/doctype/health_insurance/test_health_insurance.py deleted file mode 100644 index 6978720e89..0000000000 --- a/erpnext/hr/doctype/health_insurance/test_health_insurance.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and Contributors -# See license.txt -from __future__ import unicode_literals - -import frappe -import unittest - -class TestHealthInsurance(unittest.TestCase): - pass