feat: Added Form dashboard
This commit is contained in:
parent
4cc333996c
commit
b71611dd3d
20
erpnext/payroll/doctype/gratuity/gratuity_dashboard.py
Normal file
20
erpnext/payroll/doctype/gratuity/gratuity_dashboard.py
Normal file
@ -0,0 +1,20 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'reference_name',
|
||||
'non_standard_fieldnames': {
|
||||
'Additional Salary': 'ref_docname',
|
||||
},
|
||||
'transactions': [
|
||||
{
|
||||
'label': _('Payment'),
|
||||
'items': ['Payment Entry']
|
||||
},
|
||||
{
|
||||
'label': _('Additional Salary'),
|
||||
'items': ['Additional Salary']
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
from __future__ import unicode_literals
|
||||
from frappe import _
|
||||
|
||||
def get_data():
|
||||
return {
|
||||
'fieldname': 'gratuity_rule',
|
||||
'transactions': [
|
||||
{
|
||||
'label': _('Gratuity'),
|
||||
'items': ['Gratuity']
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user