refactor(dashboard): Move dashboard.py to account_balance_timeline.py
diff --git a/erpnext/accounts/dashboard_chart_source/__init__.py b/erpnext/accounts/dashboard_chart_source/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/erpnext/accounts/dashboard_chart_source/__init__.py
diff --git a/erpnext/accounts/dashboard_chart_source/account_balance_timeline/__init__.py b/erpnext/accounts/dashboard_chart_source/account_balance_timeline/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/erpnext/accounts/dashboard_chart_source/account_balance_timeline/__init__.py
diff --git a/erpnext/accounts/dashboard.py b/erpnext/accounts/dashboard_chart_source/account_balance_timeline/account_balance_timeline.py
similarity index 96%
rename from erpnext/accounts/dashboard.py
rename to erpnext/accounts/dashboard_chart_source/account_balance_timeline/account_balance_timeline.py
index 925f99a..6ecf360 100644
--- a/erpnext/accounts/dashboard.py
+++ b/erpnext/accounts/dashboard_chart_source/account_balance_timeline/account_balance_timeline.py
@@ -4,12 +4,14 @@
from __future__ import unicode_literals
from itertools import groupby
from operator import itemgetter
+import json
import frappe
from frappe.utils import add_to_date, date_diff, getdate, nowdate
from erpnext.accounts.report.general_ledger.general_ledger import execute
-
-def get(filters= None):
+@frappe.whitelist()
+def get(filters=None):
+ filters = json.loads(filters)
timespan = filters.get("timespan")
timegrain = filters.get("timegrain")
account = filters.get("account")