From 1831844fcf60100568d317e9a73887477d34385a Mon Sep 17 00:00:00 2001 From: deepeshgarg007 Date: Mon, 3 Jun 2019 21:53:58 +0530 Subject: [PATCH] fix: Dashboard for cost center --- erpnext/accounts/doctype/bank/bank_dashboard.py | 2 +- .../doctype/cost_center/cost_center_dashboard.py | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 erpnext/accounts/doctype/cost_center/cost_center_dashboard.py diff --git a/erpnext/accounts/doctype/bank/bank_dashboard.py b/erpnext/accounts/doctype/bank/bank_dashboard.py index 230613c5b3b..432404155d2 100644 --- a/erpnext/accounts/doctype/bank/bank_dashboard.py +++ b/erpnext/accounts/doctype/bank/bank_dashboard.py @@ -9,7 +9,7 @@ def get_data(): 'transactions': [ { 'label': _('Bank Deatils'), - 'items': ['Bank Account', 'Bank Statement Transaction Entry', 'Bank Guarantee'] + 'items': ['Bank Account', 'Bank Guarantee'] }, { 'items': ['Payment Order'] diff --git a/erpnext/accounts/doctype/cost_center/cost_center_dashboard.py b/erpnext/accounts/doctype/cost_center/cost_center_dashboard.py new file mode 100644 index 00000000000..788ac8be83f --- /dev/null +++ b/erpnext/accounts/doctype/cost_center/cost_center_dashboard.py @@ -0,0 +1,15 @@ +from __future__ import unicode_literals + +from frappe import _ + + +def get_data(): + return { + 'fieldname': 'cost_center', + 'reports': [ + { + 'label': _('Reports'), + 'items': ['Budget Variance Report', 'General Ledger'] + } + ] + } \ No newline at end of file