mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 05:59:18 +00:00
feat(dashboard): Remove hardcoded company filter
This commit is contained in:
@@ -14,10 +14,12 @@ def get(filters= None):
|
|||||||
timespan = filters.get("timespan")
|
timespan = filters.get("timespan")
|
||||||
timegrain = filters.get("timegrain")
|
timegrain = filters.get("timegrain")
|
||||||
account = filters.get("account")
|
account = filters.get("account")
|
||||||
|
company = filters.get("company")
|
||||||
|
|
||||||
from_date = get_from_date_from_timespan(timespan)
|
from_date = get_from_date_from_timespan(timespan)
|
||||||
to_date = nowdate()
|
to_date = nowdate()
|
||||||
filters = frappe._dict({
|
filters = frappe._dict({
|
||||||
"company": "Gadget Technologies Pvt. Ltd.",
|
"company": company,
|
||||||
"from_date": from_date,
|
"from_date": from_date,
|
||||||
"to_date": to_date,
|
"to_date": to_date,
|
||||||
"account": account,
|
"account": account,
|
||||||
|
|||||||
Reference in New Issue
Block a user