Number card to list view

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.

Hi @tech.kakodes

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”:

It will not apply the same filter to list view of sales invoice. I can see number card value correctly but once i click on value, it should show me those matching invoices.

Hi Team,
can anyone guide me on the list view issue? Number card card value is correct. But, if i click on number card, it shows me entire list view without the effect of dynamic filter.
Thanks.