Merge pull request #17837 from Anurag810/hr_dashboard

feat: Dashboards for Human Resource module
This commit is contained in:
Rushabh Mehta 2019-06-14 14:26:00 +05:30 committed by GitHub
commit ddec4035cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 206 additions and 21 deletions

View File

@ -0,0 +1,12 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'fieldname': 'kra_template',
'transactions': [
{
'items': ['Appraisal']
},
],
}

View File

@ -12,24 +12,32 @@ def get_data():
'items': ['Attendance', 'Attendance Request', 'Leave Application', 'Leave Allocation'] 'items': ['Attendance', 'Attendance Request', 'Leave Application', 'Leave Allocation']
}, },
{ {
'label': _('Payroll'), 'label': _('Lifecycle'),
'items': ['Salary Structure Assignment', 'Salary Slip', 'Timesheet'] 'items': ['Employee Transfer', 'Employee Promotion', 'Employee Separation']
},
{
'label': _('Shift'),
'items': ['Shift Request', 'Shift Assignment']
}, },
{ {
'label': _('Expense'), 'label': _('Expense'),
'items': ['Expense Claim'] 'items': ['Expense Claim', 'Travel Request']
},
{
'label': _('Benefit'),
'items': ['Employee Benefit Application', 'Employee Benefit Claim']
}, },
{ {
'label': _('Evaluation'), 'label': _('Evaluation'),
'items': ['Appraisal'] 'items': ['Appraisal']
}, },
{ {
'label': _('Training'), 'label': _('Payroll'),
'items': ['Training Event', 'Training Result'] 'items': ['Salary Structure Assignment', 'Salary Slip', 'Additional Salary', 'Timesheet','Employee Incentive', 'Retention Bonus']
}, },
{ {
'label': _('Lifecycle'), 'label': _('Training'),
'items': ['Employee Transfer', 'Employee Promotion', 'Employee Separation'] 'items': ['Training Event', 'Training Result', 'Training Feedback', 'Employee Skill Map']
} },
] ]
} }

View File

@ -0,0 +1,12 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'fieldname': 'employee_onboarding_template',
'transactions': [
{
'items': ['Employee Onboarding']
},
],
}

View File

@ -0,0 +1,12 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'fieldname': 'employee_separation_template',
'transactions': [
{
'items': ['Employee Separation']
},
],
}

View File

@ -13,6 +13,9 @@ def get_data():
}, },
{ {
'items': ['Leave Period', 'Shift Type'] 'items': ['Leave Period', 'Shift Type']
},
{
'items': ['Service Level', 'Service Level Agreement']
} }
] ]
} }

View File

@ -0,0 +1,15 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'fieldname': 'job_applicant',
'transactions': [
{
'items': ['Employee', 'Employee Onboarding']
},
{
'items': ['Job Offer']
},
],
}

View File

@ -0,0 +1,12 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'fieldname': 'job_title',
'transactions': [
{
'items': ['Job Applicant']
}
],
}

View File

@ -0,0 +1,15 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'fieldname': 'leave_allocation',
'transactions': [
{
'items': ['Compensatory Leave Request']
},
{
'items': ['Leave Encashment']
}
],
}

View File

@ -0,0 +1,12 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'fieldname': 'loan_application',
'transactions': [
{
'items': ['Loan']
},
],
}

View File

@ -0,0 +1,12 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'fieldname': 'loan_type',
'transactions': [
{
'items': ['Loan Application']
},
],
}

View File

@ -0,0 +1,12 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'fieldname': 'payroll_period',
'transactions': [
{
'items': ['Employee Tax Exemption Proof Submission', 'Employee Tax Exemption Declaration']
},
],
}

View File

@ -4,9 +4,15 @@ from frappe import _
def get_data(): def get_data():
return { return {
'fieldname': 'salary_structure', 'fieldname': 'salary_structure',
'non_standard_fieldnames': {
'Employee Grade': 'default_salary_structure'
},
'transactions': [ 'transactions': [
{ {
'items': ['Salary Structure Assignment'] 'items': ['Salary Structure Assignment', 'Salary Slip']
} },
{
'items': ['Employee Grade']
},
] ]
} }

View File

@ -0,0 +1,12 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'fieldname': 'shift_request',
'transactions': [
{
'items': ['Shift Assignment']
},
],
}

View File

@ -0,0 +1,12 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'fieldname': 'shift_type',
'transactions': [
{
'items': ['Shift Request', 'Shift Assignment']
}
],
}

View File

@ -0,0 +1,12 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'fieldname': 'staffing_plan',
'transactions': [
{
'items': ['Job Opening']
}
],
}

View File

@ -0,0 +1,12 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'fieldname': 'training_event',
'transactions': [
{
'items': ['Training Result', 'Training Feedback']
},
],
}

View File

@ -1,14 +1,20 @@
from __future__ import unicode_literals from __future__ import unicode_literals
from frappe import _ from frappe import _
data = { def get_data():
return {
'heatmap': True, 'heatmap': True,
'heatmap_message': _('This is based on logs against this Vehicle. See timeline below for details'), 'heatmap_message': _('This is based on logs against this Vehicle. See timeline below for details'),
'fieldname': 'license_plate', 'fieldname': 'license_plate',
'non_standard_fieldnames':{
'Delivery Trip': 'vehicle'
},
'transactions': [ 'transactions': [
{ {
'label': _('Logs'),
'items': ['Vehicle Log'] 'items': ['Vehicle Log']
},
{
'items': ['Delivery Trip']
} }
] ]
} }