diff --git a/erpnext/accounts/dashboard_chart_source/__init__.py b/erpnext/accounts/dashboard_chart_source/__init__.py new file mode 100644 index 00000000000..e69de29bb2d 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 00000000000..e69de29bb2d diff --git a/erpnext/accounts/dashboard.py b/erpnext/accounts/dashboard_chart_source/account_balance_timeline/account_balance_timeline.py similarity index 97% rename from erpnext/accounts/dashboard.py rename to erpnext/accounts/dashboard_chart_source/account_balance_timeline/account_balance_timeline.py index 925f99a229d..6ecf3609f0b 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")