mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 14:08:29 +00:00
added moduleview
This commit is contained in:
@@ -1,135 +0,0 @@
|
||||
<div class="layout-wrapper layout-wrapper-background">
|
||||
<div class="appframe-area"></div>
|
||||
<div class="layout-main-section">
|
||||
<div style="width: 48%; float: left;">
|
||||
<h5><a href="#List/Attendance">Attendance</a></h5>
|
||||
<p class="help">Attendance Mark</p>
|
||||
<br>
|
||||
<h5><a href="#List/Leave Application">Leave Application</a></h5>
|
||||
<p class="help">Applications for leave</p>
|
||||
<br>
|
||||
<h5><a href="#List/Expense Claim">Expense Claim</a></h5>
|
||||
<p class="help">Claims for expenses</p>
|
||||
<br>
|
||||
<h5><a href="#List/Salary Slip">Salary Slip</a></h5>
|
||||
<p class="help">Monthly salary statement</p>
|
||||
<br>
|
||||
<h5><a href="#List/Appraisal">Appraisal</a></h5>
|
||||
<p class="help">Performance appraisal</p>
|
||||
</div>
|
||||
<div style="width: 48%; float: right;">
|
||||
<h5><a href="#List/Employee">Employee</a></h5>
|
||||
<p class="help">Employee Master</p>
|
||||
</div>
|
||||
<div style="clear: both"></div>
|
||||
<hr>
|
||||
<h4>Reports</h4>
|
||||
<div class="reports-list"></div>
|
||||
</div>
|
||||
<div class="layout-side-section">
|
||||
<div class="psidebar">
|
||||
<div class="section">
|
||||
<div class="section-head">Leave and Attendance</div>
|
||||
<div class="section-body">
|
||||
<div class="section-item">
|
||||
<a class="section-link"
|
||||
title = "Upload and update attendance from a spreadsheet file (csv)"
|
||||
href="#Form/Attendance Control Panel/Attendance Control Panel">Upload attendance</a>
|
||||
</div>
|
||||
<div class="section-item">
|
||||
<a class="section-link"
|
||||
title = "Leave allocation helper"
|
||||
href="#Form/Leave Control Panel/Leave Control Panel">Leave Allocation Tool</a>
|
||||
</div>
|
||||
<div class="section-item">
|
||||
<a class="section-link"
|
||||
title = "Allocate leaves"
|
||||
href="#List/Leave Allocation">Leave Allocation</a>
|
||||
</div>
|
||||
|
||||
<div class="section-item">
|
||||
<a class="section-link"
|
||||
title = "Type of leaves like casual, sick etc."
|
||||
href="#List/Leave Type">Leave Type</a>
|
||||
</div>
|
||||
<div class="section-item">
|
||||
<a class="section-link"
|
||||
title = "List of holidays"
|
||||
href="#List/Holiday List">Holiday List</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="section-head">Salary and Payroll</div>
|
||||
<div class="section-body">
|
||||
<div class="section-item">
|
||||
<a class="section-link"
|
||||
title = "Monthly salary template with earnings and deductions"
|
||||
href="#List/Salary Structure">Salary Structure</a>
|
||||
</div>
|
||||
<div class="section-item">
|
||||
<a class="section-link"
|
||||
title = "Generate Salary Slips"
|
||||
href="#Form/Salary Manager/Salary Manager">Process Payroll</a>
|
||||
</div>
|
||||
<div class="section-item">
|
||||
<a class="section-link"
|
||||
title = "Benefit types like basic salary, allowances etc."
|
||||
href="#List/Earning Type">Earning Type</a>
|
||||
</div>
|
||||
<div class="section-item">
|
||||
<a class="section-link"
|
||||
title = "tax and other salary deductions"
|
||||
href="#List/Deduction Type">Deduction Type</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="section-head">Employee Setup</div>
|
||||
<div class="section-body">
|
||||
<div class="section-item">
|
||||
<a class="section-link"
|
||||
title = "Type of employment master"
|
||||
href="#List/Employment Type">Employment Type</a>
|
||||
</div>
|
||||
<div class="section-item">
|
||||
<a class="section-link"
|
||||
title = "Template for employee performance appraisals"
|
||||
href="#List/Appraisal Template">Appraisal Template</a>
|
||||
</div>
|
||||
<div class="section-item">
|
||||
<a class="section-link"
|
||||
title = "Company branches (for employee records)"
|
||||
href="#List/Branch">Branch</a>
|
||||
</div>
|
||||
<div class="section-item">
|
||||
<a class="section-link"
|
||||
title = "Company departments"
|
||||
href="#List/Department">Department</a>
|
||||
</div>
|
||||
<div class="section-item">
|
||||
<a class="section-link"
|
||||
title = "Company departments"
|
||||
href="#List/Designation">Designation</a>
|
||||
</div>
|
||||
<div class="section-item">
|
||||
<a class="section-link"
|
||||
title = "Employee grades"
|
||||
href="#List/Grade">Grade</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="section-head">Expense Claim</div>
|
||||
<div class="section-body">
|
||||
<div class="section-item">
|
||||
<a class="section-link"
|
||||
title = "Types of Expense Claim"
|
||||
href="#List/Expense Claim Type">Expense Claim Type</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
@@ -1,20 +1,147 @@
|
||||
// ERPNext - web based ERP (http://erpnext.com)
|
||||
// Copyright (C) 2012 Web Notes Technologies Pvt Ltd
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// ERPNext: Copyright 2013 Web Notes Technologies Pvt Ltd
|
||||
// GNU General Public License. See "license.txt"
|
||||
|
||||
wn.module_page["HR"] = [
|
||||
{
|
||||
title: wn._("Documents"),
|
||||
icon: "icon-copy",
|
||||
items: [
|
||||
{
|
||||
label: wn._("Leave Application"),
|
||||
description: wn._("Applications for leave."),
|
||||
doctype:"Leave Application"
|
||||
},
|
||||
{
|
||||
label: wn._("Expense Claim"),
|
||||
description: wn._("Claims for expenses made on behalf of the organization."),
|
||||
doctype:"Expense Claim"
|
||||
},
|
||||
{
|
||||
label: wn._("Attendance"),
|
||||
description: wn._("Attendance record."),
|
||||
doctype:"Attendance"
|
||||
},
|
||||
{
|
||||
label: wn._("Salary Slip"),
|
||||
description: wn._("Monthly salary statement."),
|
||||
doctype:"Salary Slip"
|
||||
},
|
||||
{
|
||||
label: wn._("Appraisal"),
|
||||
description: wn._("Performance appraisal."),
|
||||
doctype:"Appraisal"
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
title: wn._("Masters"),
|
||||
icon: "icon-book",
|
||||
items: [
|
||||
{
|
||||
label: wn._("Employee"),
|
||||
description: wn._("Employee records."),
|
||||
doctype:"Employee"
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
title: wn._("Leave Setup"),
|
||||
icon: "icon-cog",
|
||||
items: [
|
||||
{
|
||||
"route":"Form/Attendance Control Panel/Attendance Control Panel",
|
||||
"label":wn._("Upload attendance"),
|
||||
"description":wn._("Upload attendance from a .csv file"),
|
||||
doctype: "Attendance Control Panel"
|
||||
},
|
||||
{
|
||||
"route":"Form/Leave Control Panel/Leave Control Panel",
|
||||
"label": wn._("Leave Allocation Tool"),
|
||||
"description": wn._("Allocate leaves for the year."),
|
||||
doctype: "Leave Control Panel"
|
||||
},
|
||||
{
|
||||
"label":wn._("Leave Allocation"),
|
||||
"description":wn._("Leave allocations."),
|
||||
doctype: "Leave Allocation"
|
||||
},
|
||||
{
|
||||
"label":wn._("Leave Type"),
|
||||
"description":wn._("Type of leaves like casual, sick etc."),
|
||||
doctype: "Leave Type"
|
||||
},
|
||||
{
|
||||
"label":wn._("Holiday List"),
|
||||
"description":wn._("List of holidays."),
|
||||
doctype: "Holiday List"
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
title: wn._("Payroll Setup"),
|
||||
icon: "icon-cog",
|
||||
items: [
|
||||
{
|
||||
"label": wn._("Salary Structure"),
|
||||
"description": wn._("Monthly salary template."),
|
||||
doctype: "Salary Structure"
|
||||
},
|
||||
{
|
||||
"route":"#Form/Salary Manager/Salary Manager",
|
||||
"label":wn._("Process Payroll"),
|
||||
"description":wn._("Generate Salary Slips"),
|
||||
doctype: "Salary Manager"
|
||||
},
|
||||
{
|
||||
"label": wn._("Earning Type"),
|
||||
"description": wn._("Salary components."),
|
||||
doctype: "Earning Type"
|
||||
},
|
||||
{
|
||||
"label": wn._("Deduction Type"),
|
||||
"description": wn._("Tax and other salary deductions."),
|
||||
doctype: "Deduction Type"
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
title: wn._("Employee Setup"),
|
||||
icon: "icon-cog",
|
||||
items: [
|
||||
{
|
||||
"label": wn._("Employment Type"),
|
||||
"description": wn._("Type of employment master."),
|
||||
doctype: "Employment Type"
|
||||
},
|
||||
{
|
||||
"label": wn._("Appraisal Template"),
|
||||
"description": wn._("Template for employee performance appraisals."),
|
||||
doctype: "Appraisal Template"
|
||||
},
|
||||
{
|
||||
"label": wn._("Expense Claim Type"),
|
||||
"description": wn._("Types of Expense Claim."),
|
||||
doctype: "Expense Claim Type"
|
||||
},
|
||||
{
|
||||
"label": wn._("Branch"),
|
||||
"description": wn._("Company branches."),
|
||||
doctype: "Branch"
|
||||
},
|
||||
{
|
||||
"label": wn._("Department"),
|
||||
"description": wn._("Company departments."),
|
||||
doctype: "Department"
|
||||
},
|
||||
{
|
||||
"label": wn._("Grade"),
|
||||
"description": wn._("Employee grades"),
|
||||
doctype: "Grade"
|
||||
},
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
pscript['onload_hr-home'] = function(wrapper) {
|
||||
wrapper.appframe = new wn.ui.AppFrame($(wrapper).find('.appframe-area') ,'Human Resources');
|
||||
erpnext.module_page.setup_page('HR', wrapper);
|
||||
wn.views.moduleview.make(wrapper, "HR");
|
||||
}
|
||||
Reference in New Issue
Block a user