From 4b171ddebb2257e9dfb08438a8599869ee2dc063 Mon Sep 17 00:00:00 2001 From: Aditya Hase Date: Tue, 15 Jan 2019 14:36:23 +0530 Subject: [PATCH] feat(dashboard): Remove hardcoded company filter --- erpnext/accounts/dashboard.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/dashboard.py b/erpnext/accounts/dashboard.py index 5d3984e134..2405d790de 100644 --- a/erpnext/accounts/dashboard.py +++ b/erpnext/accounts/dashboard.py @@ -14,10 +14,12 @@ def get(filters= None): timespan = filters.get("timespan") timegrain = filters.get("timegrain") account = filters.get("account") + company = filters.get("company") + from_date = get_from_date_from_timespan(timespan) to_date = nowdate() filters = frappe._dict({ - "company": "Gadget Technologies Pvt. Ltd.", + "company": company, "from_date": from_date, "to_date": to_date, "account": account,