diff --git a/crm/api/dashboard.py b/crm/api/dashboard.py index 8a42e124..6e7b3e4f 100644 --- a/crm/api/dashboard.py +++ b/crm/api/dashboard.py @@ -919,7 +919,7 @@ def get_deals_by_source(from_date="", to_date="", user=""): to_date = frappe.utils.get_last_day(to_date or frappe.utils.nowdate()) if user: - deal_conds += f" AND lead_owner = '{user}'" + deal_conds += f" AND deal_owner = '{user}'" result = frappe.db.sql( f""" diff --git a/frontend/src/pages/Dashboard.vue b/frontend/src/pages/Dashboard.vue index 9901c0c5..3cbc1e25 100644 --- a/frontend/src/pages/Dashboard.vue +++ b/frontend/src/pages/Dashboard.vue @@ -14,7 +14,11 @@ -