Salary Slip renamed to Process Payroll

This commit is contained in:
Neil Trini Lasrado 2015-07-07 16:58:14 +05:30
parent 6cfab43d5f
commit 4089b3d376
9 changed files with 7 additions and 28 deletions

View File

@ -60,7 +60,7 @@ def get_data():
"items": [ "items": [
{ {
"type": "doctype", "type": "doctype",
"name": "Salary Manager", "name": "Process Payroll",
"label": _("Process Payroll"), "label": _("Process Payroll"),
"description":_("Generate Salary Slips"), "description":_("Generate Salary Slips"),
"hide_count": True "hide_count": True

View File

@ -59,6 +59,6 @@ cur_frm.cscript.make_jv = function(doc, dt, dn) {
} }
frappe.ui.form.on("Salary Manager", "refresh", function(frm) { frappe.ui.form.on("Process Payroll", "refresh", function(frm) {
frm.disable_save(); frm.disable_save();
}); });

View File

@ -154,10 +154,10 @@
"icon": "icon-cog", "icon": "icon-cog",
"idx": 1, "idx": 1,
"issingle": 1, "issingle": 1,
"modified": "2015-06-05 11:33:00.152362", "modified": "2015-07-07 07:16:02.380839",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "HR", "module": "HR",
"name": "Salary Manager", "name": "Process Payroll",
"owner": "Administrator", "owner": "Administrator",
"permissions": [ "permissions": [
{ {

View File

@ -8,7 +8,7 @@ from frappe import _
from frappe.model.document import Document from frappe.model.document import Document
class SalaryManager(Document): class ProcessPayroll(Document):
def get_emp_list(self): def get_emp_list(self):
""" """

View File

@ -1 +0,0 @@
Tool to issue monthly Salary Slips to all Employees.

View File

@ -1,21 +0,0 @@
# ERPNext - web based ERP (http://erpnext.com)
# Copyright (C) 2012 Frappe 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/>.
from __future__ import unicode_literals
from frappe import ValidationError
class SalarySlipExistsError(ValidationError): pass

View File

@ -49,7 +49,7 @@ class SalarySlip(TransactionBase):
if not self.month: if not self.month:
self.month = "%02d" % getdate(nowdate()).month self.month = "%02d" % getdate(nowdate()).month
m = frappe.get_doc('Salary Manager').get_month_details(self.fiscal_year, self.month) m = frappe.get_doc('Process Payroll').get_month_details(self.fiscal_year, self.month)
holidays = self.get_holidays_for_employee(m) holidays = self.get_holidays_for_employee(m)
if not cint(frappe.db.get_value("HR Settings", "HR Settings", if not cint(frappe.db.get_value("HR Settings", "HR Settings",

View File

@ -174,3 +174,4 @@ erpnext.patches.v5_1.fix_against_account
erpnext.patches.v5_1.fix_credit_days_based_on erpnext.patches.v5_1.fix_credit_days_based_on
erpnext.patches.v5_1.track_operations erpnext.patches.v5_1.track_operations
erpnext.patches.v5_1.sales_bom_rename erpnext.patches.v5_1.sales_bom_rename
execute:frappe.rename_doc("DocType", "Salary Manager", "Process Payroll", force=True)