From 7e2b030052ca2e0ea9766500749d666b24bdaa36 Mon Sep 17 00:00:00 2001 From: prssanna Date: Mon, 4 Nov 2019 13:06:50 +0530 Subject: [PATCH] fix: fix dashboard with date range --- .../account_balance_timeline/account_balance_timeline.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/erpnext/accounts/dashboard_chart_source/account_balance_timeline/account_balance_timeline.py b/erpnext/accounts/dashboard_chart_source/account_balance_timeline/account_balance_timeline.py index d098d8421c..716bef381b 100644 --- a/erpnext/accounts/dashboard_chart_source/account_balance_timeline/account_balance_timeline.py +++ b/erpnext/accounts/dashboard_chart_source/account_balance_timeline/account_balance_timeline.py @@ -19,6 +19,11 @@ def get(chart_name = None, chart = None, no_cache = None, from_date = None, to_d else: chart = frappe._dict(frappe.parse_json(chart)) timespan = chart.timespan + + if chart.timespan == 'Select Date Range': + from_date = chart.from_date + to_date = chart.to_date + timegrain = chart.time_interval filters = frappe.parse_json(chart.filters_json)