feat(dashboard): Remove hardcoded company filter
This commit is contained in:
parent
3b593e44c6
commit
4b171ddebb
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user