feat: dashboards for HR module

This commit is contained in:
Anurag Mishra 2019-06-03 17:48:39 +05:30
parent 6f6a1c8908
commit e6dd55d9f2
17 changed files with 210 additions and 20 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

@ -13,23 +13,31 @@ def get_data():
},
{
'label': _('Payroll'),
'items': ['Salary Structure Assignment', 'Salary Slip', 'Timesheet']
'items': ['Salary Structure Assignment', 'Salary Slip', 'Additional Salary', 'Timesheet']
},
{
'label': _('Shift'),
'items': ['Shift Request', 'Shift Assignment']
},
{
'label': _('Expense'),
'items': ['Expense Claim']
'items': ['Expense Claim', 'Travel Request']
},
{
'label': _('Evaluation'),
'items': ['Appraisal']
},
{
'label': _('Training'),
'items': ['Training Event', 'Training Result']
},
{
'label': _('Lifecycle'),
'items': ['Employee Transfer', 'Employee Promotion', 'Employee Separation']
}
},
{
'label': _('Benefit'),
'items': ['Employee Incentive', 'Retention Bonus','Employee Benefit Application', 'Employee Benefit Claim']
},
{
'label': _('Training'),
'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': ['Service Level', 'Service Level Agreement']
}
]
}

View File

@ -0,0 +1,16 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'fieldname': 'job_applicant',
'transactions': [
{
'label': _('Employee'),
'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,13 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'fieldname': 'payroll_period',
'transactions': [
{
'label': _('Employee Tax Exemption'),
'items': ['Employee Tax Exemption Proof Submission', 'Employee Tax Exemption Declaration']
},
],
}

View File

@ -4,9 +4,15 @@ from frappe import _
def get_data():
return {
'fieldname': 'salary_structure',
'non_standard_fieldnames': {
'Employee Grade': 'default_salary_structure'
},
'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,13 @@
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
'fieldname': 'training_event',
'transactions': [
{
'label': _('Result And Feedback'),
'items': ['Training Result', 'Training Feedback']
},
],
}

View File

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