Hi Team
I have number card for daily sales for sales person which is accurate with given filters. But i want to use dynamic filter for sales person so that i can use same number card for each sales person. In Dynamic filter, my filter is as below
sales person = {{ frappe.session.user_fullname }}
which is perfectly working for any sales person. But when i click on number card, it opens the sales invoice list view which is not taking the dynamic filter. Does anyone has a script to pass the dynamic filter to list view so that user will see the list as per defined filters in number card.
Need your help.
Thanks.
You can apply same filter by defining Dyamic filters in Number card as following;
{
“owner”: “john@example.com”,
“status”: “Open”
}
OR
if frappe.session.user == “john@example.com”: