From b87c1748987b7bf731e28cf8ea03df54eab08a94 Mon Sep 17 00:00:00 2001 From: Kanchan Chauhan Date: Wed, 29 Mar 2017 21:42:54 +0530 Subject: [PATCH] Employee Loan Dashboard --- .../employee_loan/employee_loan_dashboard.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 erpnext/hr/doctype/employee_loan/employee_loan_dashboard.py diff --git a/erpnext/hr/doctype/employee_loan/employee_loan_dashboard.py b/erpnext/hr/doctype/employee_loan/employee_loan_dashboard.py new file mode 100644 index 00000000000..20ce69e7633 --- /dev/null +++ b/erpnext/hr/doctype/employee_loan/employee_loan_dashboard.py @@ -0,0 +1,19 @@ +from frappe import _ + +def get_data(): + return { + 'fieldname': 'employee', + 'non_standard_fieldnames': { + 'Journal Entry': 'reference_name', + }, + 'transactions': [ + { + 'label': _('Employee'), + 'items': ['Employee Loan Application', 'Salary Slip'] + }, + { + 'label': _('Account'), + 'items': ['Journal Entry'] + } + ] + } \ No newline at end of file