added posting date to process payroll and salary slip

This commit is contained in:
robert schouten 2016-09-19 15:25:00 +08:00
parent d5ebd79ad7
commit 5c41c77c7e
3 changed files with 54 additions and 2 deletions

View File

@ -329,6 +329,32 @@
"set_only_once": 0,
"unique": 0
},
{
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
"default": "Today",
"fieldname": "posting_date",
"fieldtype": "Date",
"hidden": 0,
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
"in_filter": 0,
"in_list_view": 0,
"label": "Posting Date",
"length": 0,
"no_copy": 0,
"permlevel": 0,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 1,
"search_index": 0,
"set_only_once": 0,
"unique": 0
},
{
"allow_on_submit": 0,
"bold": 0,
@ -560,7 +586,7 @@
"issingle": 1,
"istable": 0,
"max_attachments": 0,
"modified": "2016-06-22 18:14:02.418857",
"modified": "2016-09-19 15:12:54.090381",
"modified_by": "Administrator",
"module": "HR",
"name": "Process Payroll",

View File

@ -81,6 +81,7 @@ class ProcessPayroll(Document):
"employee": emp[0],
"month": self.month,
"company": self.company,
"posting_date": self.posting_date,
})
ss.insert()
ss_list.append(ss.name)

View File

@ -36,6 +36,31 @@
"unique": 0,
"width": "50%"
},
{
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
"fieldname": "posting_date",
"fieldtype": "Date",
"hidden": 0,
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
"in_filter": 0,
"in_list_view": 0,
"label": "posting Date",
"length": 0,
"no_copy": 0,
"permlevel": 0,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
"read_only": 0,
"report_hide": 0,
"reqd": 1,
"search_index": 0,
"set_only_once": 0,
"unique": 0
},
{
"allow_on_submit": 0,
"bold": 0,
@ -1173,7 +1198,7 @@
"issingle": 0,
"istable": 0,
"max_attachments": 0,
"modified": "2016-08-10 15:57:59.944600",
"modified": "2016-09-19 15:15:06.809508",
"modified_by": "Administrator",
"module": "HR",
"name": "Salary Slip",